> > > You can prefix the regex to be matched with "(?m)", which enables > multiline mode. The full set of available flags are documented under > "Special Constructs" on the javadoc for pattern: > Whoops, that should be (?s) for the DOTALL flag, which specifies that "." should match any character, including EOLs Dean.