Skip to content

Instantly share code, notes, and snippets.

@joostvanveen
Created October 16, 2013 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joostvanveen/7004002 to your computer and use it in GitHub Desktop.
Save joostvanveen/7004002 to your computer and use it in GitHub Desktop.
Regex for removing all <span>, <font> and <div> tags from a string. Useful if you wish to edit content from a HTML editor in which somebody accidentally pasted text directly from Word :)
<[\/]?(span|font|div)[^>]*>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment