System.out.println(“abg你VBBG”.matches("[a-zA-Z]+"))
结果为ture ,如果不都是字母为false
正则表达式判断一个字符串是否都是字母
最新推荐文章于 2024-02-03 10:38:14 发布
System.out.println(“abg你VBBG”.matches("[a-zA-Z]+"))
结果为ture ,如果不都是字母为false