use Pattern.DOTALL for regex match

Please consider this, my colleague was caught by surprise that his regex did not match (see test case).

Alternatively, there could be some documentation what flags are set and what need to be set.