string s = "aawsdaw我打的的我ийклмноdwqd dasda45654,(*&%……¥";
char[] CC = s.ToCharArray();
int y = CC.Length;
for (int x = 0; x < y; x++)
{
if ((int)CC[x] >= 19968 && (int)CC[x] <= 40869)//汉字的Unicode码
{
//汉字的Unicode码
}
else if (((short)CC[x] >= 65 && (short)CC[x] <= 90) || ((short)CC[x] >= 97 && (short)CC[x] <= 122))
{
//英语的Unicode码
}
else if ((short)CC[x] >= 1025 && (short)CC[x] <= 1105)
{
//俄语的Unicode码
}
else if ((short)CC[x] >= 48 && (short)CC[x] <= 57)
{
//数字的Unicode码
}
}
//我想要的结果 如下
//aawsdaw
//我打的的我
//ийклмно
//dwqd
//dasda45654
//(*&%……¥ //可以放在数组里也可以直接输出在界面上
//空格和标点符号过滤不要很急 求教各位大侠了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货