str = "您好2243434您好";
reg = "[\u4E00-\u9FA5]";
count = 0;
for each s in str.toList("")
{
// info s;
if (s.matches(reg))
{
info true;
count = count + 1;
}
}
info count;
方法二:
str = "dsfdsfsd您好";
s = zoho.encryption.urlEncode(str).indexOf("%");//-1没有 ,其他数字有汉字