parse part of the text from regex pattern

Posted by dalco on Stack Overflow See other posts from Stack Overflow or by dalco
Published on 2010-03-24T14:47:09Z Indexed on 2010/03/24 14:53 UTC
Read the original article Hit count: 272

Filed under:
|

I have a string:

[\n['-','some text what\rcontains\nnewlines'],\n\n

trying to parse:

Regex.Split(@"[\n['-','some text what contains newlines'],\n\n", @"\[\n\['(.*)','(.*)'],.*");

but the split return array seems to be null

i need to get part of text: "some text what contains newlines"

© Stack Overflow or respective owner

Related posts about c#

Related posts about regex