Skip to content

Instantly share code, notes, and snippets.

@mientjan
Created March 16, 2015 14:37
Show Gist options
  • Save mientjan/d3bd1c3fd80a9112fb54 to your computer and use it in GitHub Desktop.
Save mientjan/d3bd1c3fd80a9112fb54 to your computer and use it in GitHub Desktop.
RegEx: find all script tags with cdata
var r = /\<script[\w\s\W]+?(\[CDATA\[)([\w\s\W]+?)(\]\]\>([\w\n]|)\<\/script\>)/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment