C#提取字符串中的英文

        /// <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;
        }
原文地址:https://www.cnblogs.com/CityOfThousandFires/p/13276045.html