I am trying to match a multi line text using java. When I use the Pattern class with the Pattern.MULTILINE modifier, I am able to match, but I am n
Pattern
Pattern.MULTILINE
The multiline flag tells regex to match the pattern to each line as opposed to the entire string for your purposes a wild card will suffice.