C# Regex Issue “unrecognized escape sequence”

前端 未结 3 1581
你的背包
你的背包 2020-12-03 13:38

I have an issue with the regular expressions I\'m using but don\'t know how to continue with them. I get the error \"unrecognized escape sequence\".

I am trying to l

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-03 14:10

    Add an additional '\' to unescape the escape. When it's processed it will then be interpreted in the manner you intended.

提交回复
热议问题