C5c code for detecting whether Chinese characters are included in the string

From , 3 Years ago, written in C#, viewed 228 times.
URL https://pastebin.vip/view/c4fac8fb
  1. /// <summary>
  2.         /// 检测是否有中文字符
  3.         /// </summary>
  4.         /// <param name="inputData"></param>
  5.         /// <returns></returns>
  6.         public static bool IsHasCHZN(string inputData)
  7.         {
  8.                         Regex RegCHZN = new Regex("[\u4e00-\u9fa5]");
  9.             Match m = RegCHZN.Match(inputData);
  10.             return m.Success;
  11.         }
  12.  
  13. //csharp/8583

Reply to "C5c code for detecting whether Chinese characters are included in the string"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website