title: RegEx not matching string in production, however works on tester
body: <p>I have the following string: <code>/v0/lifts/0626df905120f6d6/refs/8f23576e6838b528</code>. I'm trying to get the third URL string, so wrote the following RegEx: <code>/([^/]*)\w+/g</code>. According to Regexr, this should <a href="http://www.regexr.com/39r90" rel="nofollow">match all parts of the URL</a>.</p>
  
  <p>Then, with Javascript I tried to access the third array element:</p>
  
  <pre><code>var key = /([^/]*)\w+/g.exec('/v0/lifts/0626df905120f6d6/refs/8f23576e6838b528')[2];
  </code></pre>
  
  <p>However, this comes as undefined. If you print the result of it (as JSON), you get <code>["v0","v"]</code>.</p>
  
  <p>Any ideas what's wrong?</p>