public static String format(String s){
String str=s.replaceAll("[`~!@#$%^&*()+=|{}':;',\\[\\].<>/?~!@#¥%……& amp;*()——+|{}【】_‘;:”“’。,、?|-]", "");
return str;
}
Just a sample, we have a need, fill it to add it yourself
public static String format(String s){
String str=s.replaceAll("[`~!@#$%^&*()+=|{}':;',\\[\\].<>/?~!@#¥%……& amp;*()——+|{}【】_‘;:”“’。,、?|-]", "");
return str;
}
Just a sample, we have a need, fill it to add it yourself