According to documentation from the following websites C# Regex engine should be able to handle negatives lookaheads. Website: http://www.aspnetajaxtutorials.com/2008/04/regular-expression-syntax-use-in-aspnet.html.
Here is the documented syntax from the website:
(?!...) Matches if ... doesn't match next. This is a negative lookahead assertion. For example, Isaac (?!Asimov) will match 'Isaac ' only if it's not followed by 'Asimov'.
When I try use this exact example in C# it is not evaluating properly. When I try to use Regex builder Tool (http://renschler.net/RegexBuilder/) it does not evaluate properly
Could this be a bug in C#?
View Complete Post