html tags to lowercase

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
discobean
Forum Commoner
Posts: 49
Joined: Sun May 18, 2003 9:06 pm
Location: Sydney, Australia
Contact:

html tags to lowercase

Post by discobean »

hi guys,

I'm looking for a regex function that'll convert any HTML tags to lowercase?

including any attribute names (but attribute values will stay the same)..

basically its for XHTML validation..

Cheers,

Mariusz.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

I don't have an expression for you but here is a handy tool to test them out:

http://www.weitz.de/regex-coach/#install
Post Reply