If your woundering why your reqular expression isn’t matching against strings containing line terminators, the javadocs (as always) have the answer.
By default . does not match line terminiators, if you want it to you have to specify this explictly by passing the DOTALL flag when compiling the pattern;
Pattern p = Pattern.compile(”.*”, Pattern.DOTALL);