CSharp · Console
using System;
using System.Text.RegularExpressions;
public class Program
{
public static void Main()
{
string noUnicode = "此检查项己被你忽略,请联系医生。内科";
// You MUST add a "@" before the string, otherwise, the "u2028" will
// get escaped and converted to its corresponding Unicode character.
string s = @"此检查项己被你忽略,请联系医生。\u2028内科";
string ss = Regex.Replace(s, @"\\u[0-9A-Fa-f]{4}", string.Empty);
Console.WriteLine("s = " + s);
Console.WriteLine("ss = " + ss);
Console.WriteLine(ss == noUnicode);
}
}