U
unknownsoldier93
Hi. I'd like to use Perl to remove off the end of HTML any whitespace.
A simple s/\s*$//s won't suffice, since, in HTML, whitespace can look
like <pre> </pre> or etc.
(The HTML is stored in a local perl $variable.)
Also, I'd like to remove any <blockquote>blah blah blah</blockquote> at
the END of the document ONLY (ie, but not from the middle of the page).
Again, a simple s/<blockquote.*?\/blockquote>$//s won't suffice, since
blockquotes can be nested.
Any ideas?
A simple s/\s*$//s won't suffice, since, in HTML, whitespace can look
like <pre> </pre> or etc.
(The HTML is stored in a local perl $variable.)
Also, I'd like to remove any <blockquote>blah blah blah</blockquote> at
the END of the document ONLY (ie, but not from the middle of the page).
Again, a simple s/<blockquote.*?\/blockquote>$//s won't suffice, since
blockquotes can be nested.
Any ideas?