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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: end of line anchor in regex
by Anonymous Monk on Dec 09, 2007 at 18:34 UTC | |
by Anonymous Monk on Dec 10, 2007 at 04:09 UTC | |
Re^2: end of line anchor in regex
by ikegami (Patriarch) on Dec 10, 2007 at 04:37 UTC |
In Section
Seekers of Perl Wisdom