for the file src/main/resources/sample.html, applying the regex
<html.*(?:</html|</body)
I get the error:
java.lang.StackOverflowError at java.util.regex.Pattern$Curly.match0(Pattern.java:4264) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277)
java version:
java -version
java version "1.8.0_301" Java(TM) SE Runtime Environment (build 1.8.0_301-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.301-b09, mixed mode)
mvn clean compile
mvn exec:java
java.lang.StackOverflowError at java.util.regex.Pattern$CharProperty.match(Pattern.java:3790) at java.util.regex.Pattern$Curly.match0(Pattern.java:4264) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277) at java.util.regex.Pattern$Curly.match0(Pattern.java:4277)