in reply to Re: Re: newline in pattern matching
in thread newline in pattern matching

I believe your problem is the /m flag - you're telling perl to match '$' to end of lines in the middle of a string. Try removing it.

-- Dan