The code below finds and replaces the tag names into upper case.
while (<>) { s/(<\s*\/?\s*)(\w+)/$1\U$2/g; print; }
In reply to Re: Converting HTML tags into uppercase using Perl
by inman
in thread Converting HTML tags into uppercase using Perl
by steve_g50
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |