title: Can we "restart" regex from a certain position to rematch pattern?
body: <p>I have a text file which I want to parse.<br>
  I need to get all the texts inside tr("").   </p>
  
  <p>Below is the text. My regular expression matches first 3, but fails for the test4.<br>
  The test can be found here:<br>
  <a href="https://regexr.com/564gs" rel="nofollow noreferrer">https://regexr.com/564gs</a></p>
  
  <p>The problem with test4 is that I need to repeatedly match <code>\"([^"]|\\")*\"</code> until I end with <code>\"\)</code><br>
  Is it possible to do something such as<br>
  <code>tr\( __REPEAT FROM HERE__ \"([^"]|\\")*\"(\)|(\s*\\)+\n\s*\+\s* __GO TO REPEAT__)</code></p>
  
  <pre><code>// Regular expression: tr\(\"([^"]|\\")*\"(\)|(\s*\\)+\n\s*\+\s*), fails at line 6, stopped before first "
  
  1 var test = tr("a simple one\\) \"right?")
  2 var test2 = tr("")
  3 var test3 = tr("another one")
  4 var test4 = tr("god\"e mc'damn (yes) "        \
  5                                                       \
  6           + "[it's hard'] [what to do}]\\$&amp;é\"'(-)'" \
  7           + "third line?!")
  </code></pre>
  
  <p>If this is the wrong way to do it, any suggestion is much appreciated. I'm fairly new to RegEx. </p>