System.Text.RegularExpressions.Regex reg = new System.Text.RegularExpressions.Regex("[\u4e00-\u9fa5]", System.Text.RegularExpressions.RegexOptions.Multiline);

string strTemp = "随机产生了了多2333afadsg不筱个af575这样的了的算法";

MessageBox.Show(reg.Matches(strTemp).Count.ToString());

相关文章:

  • 2022-12-23
  • 2021-10-09
  • 2021-06-20
  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-19
  • 2022-12-23
  • 2021-09-17
  • 2021-10-09
  • 2021-12-12
相关资源
相似解决方案