title: Use Regex in JS to find a particular patten in a particular spot in a string
body: <p>I'm not particularly strong with Regular Expressions. Basically, I have the following string:</p>
  
  <pre><code>Showing 1-20 of 748 results.
  </code></pre>
  
  <p>I want to extract the <code>"748"</code>, convert it to a number, and use it for comparisons. As expected, <code>"Showing"</code>, <code>"of"</code>, and <code>"results"</code> are not expected to change, but the numbers could. I have a couple of solutions in mind. The first is using lookbehinds, but I do not believe JS supports them. The second is doing a more blunt approach, maybe finding all the numbers in the string using <code>match()</code> and taking the element at the third index in the returned array (which should be <code>"748"</code>).</p>
  
  <p>Any thoughts on the best way to do this?</p>