title: JavaScript regex to split numbers and letters
body: <p>I need regex pattern to split a string into numbers and letters. I.e. <code>.1abc2.5efg3mno</code> should be split into <code>[".1","abc","2.5","efg","3","mno"]</code>.</p>
  
  <p>The current regex I tried is:</p>
  
  <pre><code>var str = ".1abc2.5efg3mno";
  regexStr= str.match(/[a-zA-Z]+|[0-9]+(?:\.[0-9]+|)/g);
  </code></pre>
  
  <p>Output obtained is:</p>
  
  <pre><code>["1","abc","2.5","efg","3","mno"]
  </code></pre>
  
  <p>The number <code>.1</code> is taken as <code>1</code> whereas I need it as <code>.1</code>.</p>