标签:
String regEx="[`~!@#$%^&*()+=|{}‘:;‘,\\[\\].<>/?~!@#¥%……&*()——+|{}[]‘;:”“’。,、?]"; Pattern p = Pattern.compile(regEx); Matcher m = p.matcher(name); if( m.find()){ Toast.makeText(InputRegisterInfoActivity.this, "含不允许输入的特殊符号!", Toast.LENGTH_LONG).show(); }
标签:
原文地址:http://www.cnblogs.com/swalka/p/5391153.html