get a list of substrings which fall under a specific regex category c#.net

Posted by Jronny on Stack Overflow See other posts from Stack Overflow or by Jronny
Published on 2010-05-13T00:51:36Z Indexed on 2010/05/13 0:54 UTC
Read the original article Hit count: 459

Filed under:
|
|

for example, in my originalString:

"The {quick} brown fox jumps over {the} {lazy}} dog near {{the{} bank"

the result would be

quick, the, lazy}, {the{

i have used "/{([^}]*)}/" but don't know how to implement this to collect the items i need.

Please help. Thanks.

© Stack Overflow or respective owner

Related posts about c#4.0

Related posts about regex