java正则表达式匹配某字符串所在的一行

xiaoxiao2025-07-30  35

Pattern pattern1=Pattern.compile(".*ER_.*"); //匹配ER_所在的所有行 Matcher math=pattern1.matcher(str); while (math.find()) { System.out.println(math.group(0)); }

 

转载请注明原文地址: https://www.6miu.com/read-5033955.html

最新回复(0)