Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
Last active February 13, 2018 17:38
Show Gist options
  • Save peteristhegreat/6fedc295cc0b31f1c597f774ed556f3e to your computer and use it in GitHub Desktop.
Save peteristhegreat/6fedc295cc0b31f1c597f774ed556f3e to your computer and use it in GitHub Desktop.
Match crazy hacky script tags
var regex = /<\s*[s-][c-][r-][i-][p-][t-][\s/+]*(\w+=[^>\s]+)?\s*>.*?<\/\s*[s-][c-][r-][i-][p-][t-]\s*>/i;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment