in reply to Converting HTML tags into uppercase using Perl
The code below finds and replaces the tag names into upper case.
while (<>) { s/(<\s*\/?\s*)(\w+)/$1\U$2/g; print; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Converting HTML tags into uppercase using Perl
by davorg (Chancellor) on Nov 29, 2005 at 11:32 UTC | |
by inman (Curate) on Nov 29, 2005 at 11:59 UTC |