public static final String
SPECIAL_CHARACTER_REGEX = "[`~!@#$%^&*()_\\-+=<>?:\"{}|,.\\\\/;'\\[\\]、·~!@#¥%……&*()——\\-+={}|《》?:“”【】、;‘',。、]";
public static void main(String
[] args
) {
Matcher matcher
= specialCharacter
.matcher("gaegage&*%$&&");
boolean result1
= matcher1
.find();
boolean result2
= matcher1
.matches();
String s
= matcher1
.replaceAll("ff");
}
转载请注明原文地址: https://lol.8miu.com/read-18909.html