in reply to Re^3: Multiline replace regexp.
in thread Multiline replace regexp.

If that's what the OP wants, then better omit /m

Otherwise is ^ matching for every line start, not only the strings start.

It's at best redundant.

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