使用方法
String str = stringFilter(editable);
//过滤特殊字符
//过滤特殊字符
public
String stringFilter(String str)
throws
PatternSyntaxException{
String regEx =
"[/\\:*?<>|,,\"\n\t]"
;
Pattern p = Pattern. compile(regEx);
Matcher m = p.matcher(str);
return
m.replaceAll(
""
);
}