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.
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?
In reply to Using Perl to snip the end off of HTML by eastcoastcoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |