Finding C#-style unescaped strings using regular expressions
- by possan
I'm trying to write a regular expression that finds C#-style unescaped strings, such as
string x = @"hello
world";
The problem I'm having is how to write a rule that handles double quotes within the string correctly, like in this example
string x = @"before quote ""junk"" after quote";
This should be an easy one, right?