title: Get the first numbers from a String on Java
body: <p>Suppose I have a String which begins with a number. 
  How can I get/extract all the first numbers and convert them to an Integer? Don't want all the numbers on the String, I want the numbers since the first one until the last one before any other letter or character. </p>
  
  <p>For example: </p>
  
  <pre><code> String s= "5634-abofrda/+l8908"; // 5634
   String str="78695t08675jgk"; // 78695
  </code></pre>
  
  <p>How do I get the number 5634? 
  I'm looking for a general solution, not specific for the cases decribed.  </p>