in reply to Confusion in working upon regex with /m

see \Z in perlretut

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery