in reply to
end of line anchor in regex
You can use the
/m
modifier to make $ match newlines:
$text =~ s/hello$//gm;
See
perlre
for more information
Comment on
Re: end of line anchor in regex
Select
or
Download
Code
In Section
Seekers of Perl Wisdom