asp.net regex help

Posted by dominic on Stack Overflow See other posts from Stack Overflow or by dominic
Published on 2010-06-06T18:33:33Z Indexed on 2010/06/06 18:42 UTC
Read the original article Hit count: 520

Filed under:
|

Hi ive got this regular expression and that extracts numbers from a string

string.Join(null,System.Text.RegularExpressions.Regex.Split(expr, "[^\\d]"));

so eg, the format of my string is like this strA:12, strB:14, strC:15

so the regex returns 121415

how can I modify the expression to return 12,14,15 instead, any suggestions please

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about regex