I\'m trying to write a regular expression that will strip all tag attributes except for the SRC attribute. For example:
Alright, here's what I used that seems to be working well:
<([A-Z][A-Z0-9]*)(\b[^>src]*)(src\=[\'|"|\s]?[^\'][^"][^\s]*[\'|"|\s]?)?(\b[^>]*)>
Feel free to poke any holes in it.