title: Sublime regex only finds one match per file
body: <p>I'm trying to use the following regexp find/replace in Sublime Text to convert a commonjs module require into a es6 module import statement.</p>
  
  <p>find:</p>
  
  <pre><code>var (\w+) = require\('(\w+)'\)\;
  </code></pre>
  
  <p>replace</p>
  
  <pre><code>import $1 from '$2';
  </code></pre>
  
  <p>Somehow it only finds one match per file, and only on the first line. What do I have to change to make it match in the whole file? I've tried adding a /g for global but without luck. </p>
  
  <p>Here's some example text.</p>
  
  <pre><code>var React = require('react');
  var Router = require('react-router');
  </code></pre>
  
  <p>If I use find (cmd-F) it only finds the first occurrence regardless if I press find / find prev / find all.</p>