title: Parse JavaScript code in C#
body: <p>I have the following JavaScript code as a string literal:</p>
  
  <pre><code>var $Page = new function()
  {
      var _url= 'http://www.some.url.com';
  
      this.Download = function()
      {
          window.location = _url;
      }
  }
  </code></pre>
  
  <p>Is there a way I could get the value of the <code>_url</code> variable from my C# code? An open source library perhaps? I did this using a Regular Expression, but I was hoping for a more elegant way.</p>