I'm writing a simple regex in c# to locate backslashes not preceded or followed by any backslashes:
Regex reg = new Regex(".*(?<!\\)\\(?!\\).*");
However, this statment generates an ArgumentException: "parsing ".(?" - Not enough )'s"
The group parentheses seem to match. Can anyone spot the problem?