title: Extracting Javascript Arrays
body: <p>I am using scraping a webpage which renders markers on the google map. I have used NReco.PhantomJS to get the source code of the webpage including the data loaded through Ajax. I have now all the webpage source stored in a string object. Now the part I want to extract from whole source is a javascript Array declaration and initialization. It look like this,</p>
  
  <pre><code>var customM = [41400, 610420, 313270, 312216, 51516];
  </code></pre>
  
  <p>Now I know that I can use the StartIndex and EndIndex and get the part that I want as a SubString but there is already another similar line on the page which is commented out but extracted instead of my actual desired line,</p>
  
  <pre><code>// var customM = [43100, 310220, 311240];
  </code></pre>
  
  <p>Is there any other way to extract what I want? Some library or Regex for this?</p>