Saturday 13 July 2019

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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...