CityOfThousandFires
        /// <summary>
        /// 提取英文
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public string GetSubString(string str)
        {
            Regex regex = new Regex("^[A-Za-z]+");

            MatchCollection mMactchCol = regex.Matches(str);
            string strA_Z = string.Empty;
            foreach (Match mMatch in mMactchCol)
            {
                strA_Z += mMatch.Value;
            }
            return strA_Z;
        }

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2021-10-04
  • 2021-06-04
  • 2021-11-21
  • 2021-11-13
猜你喜欢
  • 2022-12-23
  • 2021-11-09
  • 2021-07-04
  • 2022-12-23
  • 2021-10-01
  • 2021-11-09
  • 2021-10-15
相关资源
相似解决方案