in reply to end of line anchor in regex
Less efficient, still possible:
perlrequick, perlretut, split, grep, join.
$text = join($1, grep(/[^hello]/, split(/(\n)/, $text)));
perlrequick, perlretut, split, grep, join.
In Section
Seekers of Perl Wisdom