SHARE
TWEET

Untitled

a guest Jan 14th, 2016 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var scripttext = url;
  2.  
  3. var re = /{([\s\S]*?)}/gm;
  4.  
  5. var match;
  6. while (match = re.exec(scripttext)) {
  7.   // full match is in match[0], whereas captured groups are in ...[1], ...[2], etc.
  8.   console.log(match[1]);
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top