Skip to content

Instantly share code, notes, and snippets.

@zisra
Last active June 5, 2023 14:44
Show Gist options
  • Save zisra/b474ab26a16c6ccf3c939a1961cbadd6 to your computer and use it in GitHub Desktop.
Save zisra/b474ab26a16c6ccf3c939a1961cbadd6 to your computer and use it in GitHub Desktop.
A regex that removes a specific HTML element from a string

<element-name\b[^>]*>([\s\S]*?)<\/element-name>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment