title: Find and extract a number from a string
body: <p>I have a requirement to find and extract a number contained within a string.</p>
  
  <p>For example, from these strings:</p>
  
  <pre><code>string test = "1 test"
  string test1 = " 1 test"
  string test2 = "test 99"
  </code></pre>
  
  <p>How can I do this?</p>