In the following string:
<table border="1"><tr><td class=" m" bgcolor="#cccccc" style="bold" size="7" m="m "><span></span> </td><td class=" m" bgcolor="#cccccc" style="bold" size="7" m="m " align="center">NAMES </td><td class=" m" bgcolor="#cccccc" style="bold" size="7" m="m " colspan="13" align="center">AREAS </td></tr></table>
I'd like to remove all attributes other than the following: border,bgcolor and class.
^(?:border|class|bgcolor)\b))=".*?"
doesn't work out. Any suggestions please?