|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Stripping Trailingbr'sby Caillte (Friar) |
| on Apr 05, 2001 at 12:30 UTC ( [id://70057]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
If the <br> tag is all that is on the line then $line =~ s/^<br>$//i; will kill it. $line =~ s/^\s*<br>\s*$//i; would remove a tag that is only surrounded by whitespace. If you want to remove a particular tag/sets of tage from the entire document, take a look at HTML::Filter. It would seem to do some quite interesting things. $japh->{'Caillte'} = $me;
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||