这是一个简单的测试用例,我觉得我缺少一些基本的东西,但任何帮助将不胜感激!
string data = @"Well done UK building industry, Olympics \u00a3377m under budget + boost";
foreach (Match m in Regex.Matches(data, @"\\u(\w*)\b"))
{
Console.WriteLine("'{0}' found at index {1}.", m.Value, m.Index);
string match = m.Value;
// These should output the exact same thing however the first is a £ and the other is \u00a3377m
Console.WriteLine("\u00a3377m" + " " + match);
}