title: How do you find a match inside of a match using regular expressions in Javascript?
body: <p>How do you find a match inside of a match?</p>
  
  <p>With the following string</p>
  
  <pre><code>@function("something") @anotherFunction("moreStuff" "andMore") "evenMore"
  </code></pre>
  
  <p>I'm trying the capture the things in quotes as well as the the function names. The outcome I'm looking for is:</p>
  
  <p><strong>Match 1</strong></p>
  
  <pre><code>Group 1: function
  Group 2: something
  Group 3: undefined
  </code></pre>
  
  <p><strong>Match 2</strong></p>
  
  <pre><code>Group 1: anotherFunction
  Group 2: moreStuff andMore
  Group 3: undefined
  </code></pre>
  
  <p><strong>Match 3</strong></p>
  
  <pre><code>Group 1: undefined
  Group 2: undefined
  Group 3: evenMore
  </code></pre>
  
  <p>I can manage to get everything in quotes using the expression below but I'm not sure how to capture the right groups when looking for matches that exist inside the functions.</p>
  
  <pre><code>\"([^\"]*)\" *
  </code></pre>
  
  <p><img src="https://www.debuggex.com/i/Jpm3yvsOkEPWoDWB.png" alt="Regular expression visualization"></p>
  
  <p><a href="https://www.debuggex.com/r/Jpm3yvsOkEPWoDWB" rel="nofollow">Debuggex Demo</a></p>