Skip to content

Instantly share code, notes, and snippets.

@examinedliving
Last active December 18, 2017 04:09
Show Gist options
  • Save examinedliving/6314632 to your computer and use it in GitHub Desktop.
Save examinedliving/6314632 to your computer and use it in GitHub Desktop.
RegExp That will match opening and closing tags in the same element. Useful For Replacing Tags in an HTML Element String. Useful for things like sublime find and replace.
# 'elem' Should Be Replaced With the name of the tag to matched.
/<\/?elem>/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment