Hi steve_g50, Try this,
#!/usr/bin/perl -w use strict; local $/; open(INPUT, "input.html") || die("$!"); open(OUTPUT, ">output.html") || die ("$!"); my $txt = <INPUT>; $txt=~s/<([^> ]*)([^>]*>)/"<".uc($1)."$2"/egsi; #Updated: only element + names except attributes print OUTPUT $txt;
Regards,
Velusamy R.
In reply to Re: Converting HTML tags into uppercase using Perl
by Samy_rio
in thread Converting HTML tags into uppercase using Perl
by steve_g50
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |