String str = "*(^YUIGHUGU^^&*()*6哈哈89324328uewh~!@#$%^&*()_+,./粗猛<>?;'睁仿:[]\\{}|-=";/悉凳纤/要过滤的字符串str = str.replaceAll("[\\pP|~|$|^|<|>|\\||\\+|=]*", "");System.out.println(str);输出结果:YUIGHUGU6哈哈89324328uewh
"^[A-Za-z\\d\\u4E00-\\u9FA5]+$"