title: How can I get all matches of string in a regular expression?
body: <p>I wanna get all matches of string my regex about arount specific string.</p>
  <p>Start with <code>$t('</code> and end with <code>'</code>.</p>
  <p>So, I use expression <code>/(?&lt;=\$t\(')(.*)(?=')/gi</code> but it didn't work.</p>
  <p>in this sentances I want get <code>aaa.bbb</code>, <code>ccc.ddd</code>, <code>eee.fff</code>, but it matched <code>aaa.bbb</code>, <code>ccc.ddd', ['name', 'age</code> and <code>eee.fff</code></p>
  <p>I wanna match end with first <code>'</code>. How can I use expression?</p>
  <pre><code>$t('aaa.bbb')
  $t('ccc.ddd', ['name', 'age'])
  $t('eee.fff', [
      'name',
      'age',
  ])
  </code></pre>