- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 正则表达式--匹配n个相同连续字符
String pwd ="36667";String regx = "^.*(.)\\1{2}.*$";Matcher m = null;Pattern p = null;p = Pattern.compile(regx);m = p.matcher(pwd);if(m.matches()) {}上面这段代码就是匹配一个串里是否有3个相同连续字符匹配...
2013-06-26 18:55:59
1589
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅