Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8490849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:14:44+00:00 2026-06-10T22:14:44+00:00

now I have got a long string like this { , , , }

  • 0

now I have got a long string like this

{"" ,"" ,"" ,"" } , {"" ,"" ,"" ,"" } 

there could be anything in between " " even Unicode characters. I used something like this

string pattern = "\"([\u0000-\uffff]+)+\""; 

but it just returns everything instead of return one by one.
I used Groups and Capture properties ,Capture Collection has info about everything matched but still I can’t extract what I need. I need to extract everything in between "" one by one. I don’t need to extract the { } " " , just contents in between each " ".

So in my case there should be 8 groups should be returned, how can I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:14:46+00:00Added an answer on June 10, 2026 at 10:14 pm

    If pattern "," is a reliable delimiter (cannot appear as text) and there are no empty spaces between curly brackets and quotation marks, you can use this approach:

            string input = @"{""a"",""b"","" my name is ""vul"" and it's nice "",""""},{"""","""","""",""""}";
    
            input = input
                    .Replace("{", String.Empty)
                    .Replace("}", String.Empty);
    
            var strings = input.Split(new string[] {@""","""}, StringSplitOptions.None);
    
            strings[0] = strings[0].TrimStart('"');
            strings[strings.Length - 1] = strings[strings.Length - 1].TrimEnd('"');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a logging functionality and in this I have got log files. Now
I have a simple problem with XML got from database. Now, this XML can
Possible Duplicate: JavaScript: formatting number with exactly two decimals Now that I have got
Hi Again Masters Of The Web :) Now, I have got a new stupid
I just got an email from twitter saying my keys have now been enabled
I got a Project from my Company without Documentation. Now I have to add
i have done some learning on struts based on one project that i got.Now
I have been working with Rails for a little while now. I got some
I have a domain with host www.mydomainhost.com . Now i got another domain named
Previously, I have worked on local notifications, but I got problem in it now.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.