>>>>> "GH" == Gunnar Hjalmarsson <> writes:
GH> This is one approach:
GH> s{(\b\w+\b)}{
GH> my $match = $1;
GH> $match =~ /^(?

ne|two|three)$/ ? $match : '';
GH> }eg;
or use a hash inside for better speed (untested):
my %ignore_tags = map { $_ => 1 } qw( one two three ) ;
s{(\b\w+\b)}{ $ignore_tags{$1} ? $1 : '' }eg;
adding in the <> stuff is left as an exercise to the reader. for that
reason alone, a parser should be used. most html parser modules are easy
hack so they will filter out tags and rebuild the html text later.
uri
--
Uri Guttman ------
--------
http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ----------------------------
http://jobs.perl.org