good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Converting HTML tags into uppercase using Perlby Corion (Patriarch) |
on Nov 29, 2005 at 11:09 UTC ( [id://512580]=note: print w/replies, xml ) | Need Help?? |
This script of course breaks for the case of an embedded ">" sign in the value, and it uppercases all values too, both of which will break the HTML file:
These niggles are the reason why it is always recommended to avoid parsing HTML with regular expressions. Update: Rearranged HTML to be a test case for the second problem as well.
In Section
Seekers of Perl Wisdom
|
|