title: Delphi extract numbers from string
body: <p>I have a variety of strings which I need to work with, these contain both letters and numbers , I am trying to extract the numbers (which is the part I need) from the string, the strings would have a similar format to - </p>
  
  <p>the cat can count 123 567 so can the dog"</p>
  
  <p>The length and position of the numbers can vary from 
  12 34
  123 456
  1234 5678
  11111 11111</p>
  
  <p>Also the number seperator can vary from a space question mark and also a dash
  12-34
  12.34
  So the string could be EG “the cat can't count, the dog can 12-67” or “the cat can count 1234.5678 so can the dog”
  Is there any clever way in Delphi I can extract the numbers? Or would I have to do it by scanning the string in code.</p>
  
  <p>Any help would be appreciated</p>
  
  <p>Thanks</p>
  
  <p>colin</p>