教大家一个超简单的判断英文字母

1.判断是不是英文字母

字符串 String str = "fdsafdsa";

str.matches("[a-zA-Z]+"); //搞定

猜你喜欢

转载自www.cnblogs.com/rifngah/p/8994940.html