title: Regex for two digit number
body: <p>If i do:</p>
  
  <pre><code>var pageNum= 2;
  
  nextLink = http://mydomain.com/?paged=1 
  
  nextLink = nextLink.replace(/\/?paged=[0-9]?/, 'paged='+ pageNum);
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>nextLink = 'http://mydomain.com/?paged=2';
  </code></pre>
  
  <p>But if I go:</p>
  
  <pre><code>var pageNum= 12;
  
  nextLink = http://mydomain.com/?paged=10 
  
  nextLink = nextLink.replace(/\/?paged=[0-9]?/, 'paged='+ pageNum);
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>netLink = 'http://mydomain.com/?paged=120'; 
  </code></pre>
  
  <p>When I want:</p>
  
  <pre><code>nextLink = 'http://mydomain.com/?paged=12';
  </code></pre>
  
  <p>So, how can I use a two digit number (11, 12, 13, 14 etc) and replace it with the pageNum variable (which can be both a one and two digit number).</p>
  
  <p>Thank's!</p>