title: matching a function call with JS Regex
body: <p>I am trying to match a function call using Regex but is not giving on big JS file where nested calls of the same function are inside.  For example below is the code in JS file</p>
  
  <pre><code>abc('hello', function(){
      abc('hello1', function(){
         abc('hello2', function() {
            // Does some!
         });
      });
  });
  </code></pre>
  
  <p>And I want to match only first call to identify the first parameter. The end result I am looking for is <code>hello</code>. So doing like below to match first call  </p>
  
  <pre><code>.replace(/(?:\r\n|\r|\n)/g, '').match(/abc\s*[^\"\']*\"([^\"\']*)\"/); 
  </code></pre>
  
  <p>Any suggestions please?</p>