title: Split a string into a string and an integer
body: <p>I have several strings that contain one or more digits and may also contain one or more letters following the digits (caps on letters don't matter). The strings follow the following regex pattern:</p>
  
  <pre><code>[0-9]+[a-zA-z]*
  </code></pre>
  
  <p>and may look like:</p>
  
  <pre><code>"15791"
  "14810A"
  "10480ABCD"
  "5ABCDEFGH"
  </code></pre>
  
  <p>If one of the strings above contains non-numerical characters, how do I split the numbers (first part) into an integer and the letters (second part) into a string?</p>
  
  <p>I know I can split a string like this:</p>
  
  <pre><code>array = "1,2,3,4".split(',')
  </code></pre>
  
  <p>But this doesn't help since I don't have a separator.</p>