Raf's Lab
Wednesday May 19, 2010
Regex: Removing class attributes from XML/XHTML
If you have ever needed to remove class attributes from xml/xhtml, then the following regex might save you some time
find: ( class="[\w-^"]*")
replace:
Please note that [\w^"] will fail, as the "-" dash character is not included, something I spent a little time on :O)
Posted at 11:08AM May 19, 2010 by Rafez in Programming | Comments[0]
Comments:
