title: PHP Regular Expression Help: A quick way to extract the 2 from "page/2/"
body: <p>Regular expressions - my current Achilles heal. </p>
  
  <p>I just need a way to take the string "<code>page/2/</code>" and extract the number, and only the number. It will always take that format.</p>
  
  <p>So could be <code>page/2/</code> to <code>page/999999/</code>.</p>
  
  <p>This is what I currently have:</p>
  
  <pre><code>preg_match_all('/\/page\/.*\//', 'page/2/', $arr, PREG_PATTERN_ORDER);
  </code></pre>
  
  <p>How would this be done?</p>