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 <[EMAIL PROTECTED]> 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 > [email protected] > http://mozdev.org/mailman/listinfo/project_owners > _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
