Mar 01

I whipped this up to remove all spans and/or divs in an HTML. Don’t ask why. Here’s the regex:

< ?(span|div)[a-zA-Z0-9'" =]+>

Did I mention I love regex?

Enjoy.

Tagged with: