So I am trying to write a regex in c# (.NET) to match on a range of unicode characters that could potentially be found in a string. As a simple test, I attempted to match on a single unicode character, \u8221, which is the character ”. If I use the regex string “””, I get a match against my test string that contains this character. If, however, I change my regex to “\u8221”, I don’t get a match. Anyone know why this could be and how to get it to work? I have been pulling my hair out over this one. Thanks in advance.
Share
You are not matching the correct character.
\urequires a character code in hexadecimal. Try\u201Dinstead.