正则表达式相关笔记
2020-01-31 本文已影响0人
Joey_Java
通过正则表达式查找出所有匹配字符串
Pattern pattern= Pattern.compile("abc[^0-9]");
String str="abcdawefawefabcwew";
Matcher matcher= pattern.matcher(str);
while (matcher.find()){
System.out.println(matcher.group());
}