title: How do I determine if there are two or one numbers at the start of my string?
body: <p>How can I determine what number (with an <strong>arbitrary</strong> number of digits) is at the start of a string?</p>
  
  <p>Some possible strings:</p>
  
  <pre><code>1123|http://example.com
  2|daas
  </code></pre>
  
  <p>Which should return 1123 and 2. </p>