C# equivalent of Java Punctuation regex

Posted by user325099 on Stack Overflow See other posts from Stack Overflow or by user325099
Published on 2010-04-24T20:23:01Z Indexed on 2010/04/24 20:33 UTC
Read the original article Hit count: 337

Filed under:
|
|
|

I'm looking to find the equivalent in C# for the equivalent of this regex.

Java: public static final String expression = "[\s\p{Punct}]";

{Punct} is a reserved character class in Java but I'm not sure how to create the equivalent expression so that the .net regex engine doesn't barf.

© Stack Overflow or respective owner

Related posts about c#

Related posts about java