[Project_owners] regex help to lowercase (X)HTML tags needed

HJ bugs4hj at yahoo.com
Mon Apr 17 16:57:44 EDT 2006


Hi,

I need to replace all upper case tags and attributes in XHTML (think 
XMLHttpRequest) with .replace() but I have no idea *if* that is even 
possible, or how to make it work (:

Example:

<IMG SRC="http[s]://foo.bar.com/UPPERCASElowercase.png"/>

should become:

<img src="http[s]://foo.bar.com/UPPERCASElowercase.png"/>

and:

<a HREF="http[s]://foo.bar.com/UPPERCASElowercase.png">link</A>

should become:

<a href="http[s]://foo.bar.com/UPPERCASElowercase.png">link</a>

Do you have any suggestions for me?
Anyone ever done something like this?

Thank you for your time,
/HJ


More information about the Project_owners mailing list