title: Regex for number surrounded by slashes
body: <p>Like the title says, I have a (faulty) Regex in JavaScript, that should check for a "2" character (in this case) surrounded by slashes. So if the URL was <a href="http://localhost/page/2/" rel="nofollow">http://localhost/page/2/</a> the Regex would pass.</p>
  
  <p>In my case I have something like <a href="http://localhost/?page=2" rel="nofollow">http://localhost/?page=2</a> and the Regex still passes.</p>
  
  <p>I'm not sure why. Could anyone tell me what's wrong with it?</p>
  
  <pre><code>/^(.*?)\b2\b(.*?$)/
  </code></pre>
  
  <p>(I'm going to tell you, I didn't write this code and I have no idea how it works, cause I'm really bad with Regex)</p>