<span style="white-space:pre"> </span>String testStr = "sdf12";
Boolean b = testStr.matches(".*?[a-z]+.*?")&&testStr.matches(".*?[\\d]+.*?");
Log.e("test",""+b); android 判断字符串是否同时包含小写字母与数字
最新推荐文章于 2024-05-27 23:36:01 发布
本文探讨了如何使用正则表达式对字符串进行匹配,包括字母和数字的组合验证。
364

被折叠的 条评论
为什么被折叠?



