/// <summary>
/// 字符串截取方法
/// </summary>
/// <param name=
/// <param name=
/// <returns></returns>
public string Substr(string str
{
if (!string
{
System
Regex rEnglish = new Regex(@
if (rChinese
{
//中文
return (str
}
else if (rEnglish
{
//英文
return (str
}
return (str
}
return
}
From:http://tw.wingwit.com/Article/program/ASP/201311/21838.html