using System.Text.RegularExpressions;
private string GetResult(string str)
{
int len=str.Length;
str=Regex.Replace(str,"[a-zA-Z]","");
string result=(len-str.Length)+"个字母 ";
len=str.Length;
str=Regex.Replace(str,"[0-9]","");
result+=(len-str.Length)+"个数字 ";
len=str.Length;
str=Regex.Replace(str,"[\u4e00-\u9fa5]","");
result+=(len-str.Length)+"个中文";
return result;
}