title: regex getting the first instance of a number from a string
body: <p>I return the following string from a webpage </p>
  
  <pre class="lang-none prettyprint-override"><code>Order Number: 1509596 Customer Number: 8
  </code></pre>
  
  <p>but it could also be </p>
  
  <pre class="lang-none prettyprint-override"><code>Order ID 1509596 Customer 8
  </code></pre>
  
  <p>I want to use regex so in my method I just return the order number, I was doing </p>
  
  <pre><code>orderNumber.replaceAll("[^0-9]", "")
  </code></pre>
  
  <p>but that obviously doesn't work because I then have an 8 on the end of my order number. Can somebody help me how I would just the order number as I'm rubbish at reg ex! </p>
  
  <p>The string will always be 50 characters long but the order number is dynamic so I don't know how long it will be, is it possible to just return the first number in the string? </p>