Tuesday, May 24, 2016

c# - I can not put single double quotes ' " ' in a string for regex pattern

I am trying to build regex pattern but the string doesn't take single double quotes.



this is the pattern and it crashes when I add \"



@"(?<\"|\'|\“)(?'first'{0}\s(?'middle'{0}{1}{2}"

No comments:

Post a Comment