Skip to content

Instantly share code, notes, and snippets.

@mccar2cm
Created August 10, 2013 23:49
Show Gist options
  • Save mccar2cm/6202693 to your computer and use it in GitHub Desktop.
Save mccar2cm/6202693 to your computer and use it in GitHub Desktop.
RegEx Tag Replacement
//get rid of all tags:
rereplacenocase(variable, "<[^<]*>","","all")
//get rid of image tag only:
rereplacenocase(variable, "<img[^<]*>","","all")
//get rid of two or more specific tags:
rereplacenocase(variable, "<(img|/?div|br)[^<]*>","","all")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment