Finding quoted strings with escaped quotes in C# using a regular expression
What you’ve got there is an example of Friedl’s “unrolled loop” technique, but you seem to have some confusion about how to express it as a string literal. Here’s how it should look to the regex compiler: “[^”\\]*(?:\\.[^”\\]*)*” The initial “[^”\\]* matches a quotation mark followed by zero or more of any characters other than … Read more