$somestring =~ s#<TR><TD>&nbsp;</TD></TR>##g;
You might want to do some reading up on regexes:
perlman:perlre.
Update: Oops! Brain swapped out.
Slashes in the regex don't mix
well with slashes as delimiters.
I substituted #'s for a more felicitous result.
Thanks buckaduck and runrig...
dvergin considers reading perlman:perlre
himself. | [reply] [d/l] |
Um, those '/' characters are going to cause you trouble, you could use a different s/// delimiter, but probably better just to use quotemeta on the string first:
my $qmstring = quotemeta('<TR>...etc.');
$somestring =~ s/$qmstring//g;
| [reply] [d/l] |