|
-
March 3rd, 2003, 10:01 PM
#1
Problem with Regex
I'm writing the following statement:
string sValue = @"(r11) , ";
string res = Regex.Match(sValue, @"[^,(\s)]+(\s)*,*(\s)*", RegexOptions.Compiled).Value;
Console.WriteLine(res) ;
I wish to get the string "(r11)" without the comma and the spaces.
Yet I get the string "r11" without the parentheses too.
What I'm doing wrong?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|