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

1.判断是不是英文字母

字符串 String str = "fdsafdsa";

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

posted @ 2018-05-05 15:46  帅朱朱  阅读(649)  评论(0)    收藏  举报