can't get second number between parenthesis using regex : <p>now I begin learning regex, and I have set of string in format like "(9/13)", and I need get second number. I  try this regex: <code>/\(.*?[^\d]*(\d+?)\)/g</code>, in <a href="https://regex101.com/r/mFGYcA/2" rel="nofollow noreferrer">online regex</a> it works normally.</p>

<p>But here:</p>

<pre><code>var d = "(9/13)";
var v = /\(.*?[^\d]*(\d+?)\)/g;
alert(d.match(v));
</code></pre>

<p>it returns "(9/13)" , what am I doing wrong?</p>
