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

Eric H. Jung grimholtz at yahoo.com
Mon Apr 17 17:23:45 EDT 2006


I haven't done this before, nor seen it done, but you might get a good start by looking at some
the regexs at:

http://regexlib.com

Search "HTML" and there are some rather interesting ones...


--- HJ <bugs4hj at yahoo.com> wrote:

> 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
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
> 



More information about the Project_owners mailing list