المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Split string with Regex



C# Programming
06-14-2011, 06:55 PM
Hi,

I need to split a large string and split that splitted string again. I have the following string:

root{ stringB = { "key": "value", "key": "value", "StringC": { "key": "value", "key": "value", "key": "value", "key": "value", } "StringD": "value", "StringE": { "key": "value", } }}
The result I actually want is something like this:
string[] AllStrings = StringB,StringC,StringD,StringE

Is there a way to do this? I used Regex.Split option.
Thanks in advance!