Skip to content

Instantly share code, notes, and snippets.

@psycalc
Created December 22, 2017 11:36
Show Gist options
  • Save psycalc/7b4bb322759ba9254fa4961c13288091 to your computer and use it in GitHub Desktop.
Save psycalc/7b4bb322759ba9254fa4961c13288091 to your computer and use it in GitHub Desktop.
regular expression for powershell inorder to delete all script tag from html
(?s)<script(\stype=("|')text\/javascript("|'))?(\ssrc=".*?")?>.*?</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment