假设我有一个包含以下内容的文本文件:
longtextwith some space and unicode escape like this \u003ca
我想要替换\u003c的所有实例/实例/序列,忽略a是尾随的这一事实。类似于“查找字符序列的所有实例,忽略大小写并替换它”。
我已经尝试过了,但是什么也没有发生:
using (var sr = new StreamReader("1.txt"))
{
string result = sr.ReadToEnd();
result = Regex.Replace(result, @"\b\\u00