title: Splitting numbers and letters in string which contains both
body: <p>I am trying to split following (or similar) string "08-27-2015 07:25:00AM".
  Currently I use </p>
  
  <pre><code>var parts = date.split(/[^0-9a-zA-Z]+/g);
  </code></pre>
  
  <p>Which results in</p>
  
  <pre><code>["02", "27", "2012", "03", "25", "00AM"]
  </code></pre>
  
  <p>The problem is with the <code>00AM</code> part. I want it to be separated too. So the perfect result would be:</p>
  
  <pre><code>["02", "27", "2012", "03", "25", "00", "AM"]
  </code></pre>