判断String字符串是否是中文
String string; //需要判断的内容
if(string.matches("[\u4E00-\u9FA5]+")){
ToastUtils.Toast(Activity_authentication.this, "内容是中文");
}else{
ToastUtils.Toast(Activity_authentication.this, "内容包含非中文");
}
标签:Toast,中文,Java,String,ToastUtils,是否是,authentication,Activity From: https://blog.51cto.com/u_13520184/6115607