Skip to content

Instantly share code, notes, and snippets.

@Patrick64
Last active January 27, 2022 11:43
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 Patrick64/a201b1c9778fafae398fa4932f7470c2 to your computer and use it in GitHub Desktop.
Save Patrick64/a201b1c9778fafae398fa4932f7470c2 to your computer and use it in GitHub Desktop.
Wicked cool regexs
# Match all script tags
<script(.|\n)*?</script>
# Match all style tags
<style(.|\n)*?</style>
# match all iframes
<iframe(.|\n)*?</iframe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment