关于多行字符串无法匹配的问题,处理当前问题,需要加上下面的东西
Pattern.MULTILINE | Pattern.DOTALL
这样才能处理多行问题,防止拿不到匹配符中的效果,这里简单的处理方式入如下所示:
Pattern patternCompile = Pattern.compile(regexZero, Pattern.MULTILINE | Pattern.DOTALL);