T
Tony Johansson
Hi!
Here is the pattern I use
string pattern = @"[.-\s]";
and the string is just "."
When I run this I get the runtime error
parsar [.-\s] - It's not possible to include the class \s in the character
interval.
If I instead move the dot(.) in the regular expression to a position after
the dash or as the last character it works fine .
[-.\s] or [-\s.]
So why is it not possible to have the dot(.) as the first character in the
regular expression ?
//Tony
Here is the pattern I use
string pattern = @"[.-\s]";
and the string is just "."
When I run this I get the runtime error
parsar [.-\s] - It's not possible to include the class \s in the character
interval.
If I instead move the dot(.) in the regular expression to a position after
the dash or as the last character it works fine .
[-.\s] or [-\s.]
So why is it not possible to have the dot(.) as the first character in the
regular expression ?
//Tony