John La wrote:A case of RTFM, I'm afraid. "." may or may-not match line terminators. The default is to NOT match line terimators.
This works as I had wished:
The "(?s)" expression enables DOTALL mode, in which line terminators are matched by ".".
Thanks for the help, sometimes the question is answered by asking it.
Yeah, sometimes just explaining the problem solves it... it happens a lot for me, which explains why I always seem to talk to myself ...
Anyway, glad that you solved it. And also, thank you for coming back here, to give us the very detailed answer. Most people just abandon their topics once the solution is found.,,. I just awarded you a
cow.
Henry