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

Neil neil at parkwaycc.co.uk
Tue Apr 18 12:50:40 EDT 2006


HJ wrote:

> 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 (:

Try responseText.replace(/<\w+\b|\b\w+=/g, String.toLowerCase)


More information about the Project_owners mailing list