String str=str.replaceAll("(?i)[^a-zA-Z0-9\u4E00-\u9FA5]", ""); 转载于:https://www.cnblogs.com/Lxiaojiang/p/6639785.html