title: js RegEx: Remove callback function call, but keep the argument (the JSON)
body: <p>I'm using a thesaurus API to get synonyms from a word. </p>
  
  <p>Here is the link:</p>
  
  <p><a href="http://thesaurus.altervista.org/testjs" rel="nofollow">http://thesaurus.altervista.org/testjs</a></p>
  
  <p>It is returning a string which is supposed to contain JSON data, but it's wrapped in a callback function which I suspect is causing JSON.parse() to choke and I don't know how to remove/bypass it:</p>
  
  <pre><code>//results from 'elephant'
  process({"response":[{"list":{"category":"(noun)","synonyms":"proboscidean|proboscidian"}},{"list":{"category":"(noun)","synonyms":"emblem|allegory"}}]})
  </code></pre>
  
  <p>I have tried it without the callback but it doesn't work and I found the reason for that: <a href="http://thesaurus.altervista.org/forum/index.php?forum=3&amp;thread=1355490905" rel="nofollow">"HTTP response with "Access-Control-Allow-Origin", but only if the HTTP request is performed using the optional parameter "callback""</a>.</p>
  
  <p>So my theory is, maybe regular expressions can strip the <code>process()</code> off of it, then hopefully JSON.parse will be happy. Thanks.</p>