title: How to split a string between letters and digits (or between digits and letters)?
body: <p>I'm trying to work out a way of splitting up a string in java that follows a pattern like so:</p>
  
  <pre><code>String a = "123abc345def";
  </code></pre>
  
  <p>The results from this should be the following:</p>
  
  <pre><code>x[0] = "123";
  x[1] = "abc";
  x[2] = "345";
  x[3] = "def";
  </code></pre>
  
  <p>However I'm completely stumped as to how I can achieve this. Please can someone help me out? I have tried searching online for a similar problem, however it's very difficult to phrase it correctly in a search.</p>
  
  <p><strong>Please note:</strong> The number of letters &amp; numbers may vary (e.g. There could be a string like so '1234a5bcdef')</p>