|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: end of line anchor in regexby FunkyMonk (Abbot) |
| on Dec 09, 2007 at 16:20 UTC ( #655967=note: print w/ replies, xml ) | Need Help?? |
|
You can use the /m modifier to make $ match newlines: $text =~ s/hello$//gm; See perlre for more information
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||