[\u4e00-\u9fa5] 经常用到,留作备忘 if(!(words[j].matches("[\u4e00-\u9fa5]")||words[j].matches("[a-z]+")))continue;//去掉非汉字和英文单词的情况 转载于:https://blog.51cto.com/itlearner/199741