title: Is possible to bypass my regex and execute any javascript?
body: <p>Is possible to bypass my regex and execute any javascript?</p>
  
  <pre><code>function json(a){ 
      if (/^\s*$/.test(a) ? 0 : /^[\],:{}\s\u2028\u2029]*$/
          .test(a.replace(/\\["\\\/bfnrtu]/g, "@")
          .replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]")
          .replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g, ""))) 
  
       try{ 
           return eval("(" + a + ")") 
       } catch (b) {} 
       g(Error("Invalid JSON string: " + a)) 
  }
  //... 
  json(window.name);
  </code></pre>
  
  <p>I believe is impossible.</p>