title: how to split string in javascript using RegExp?
body: <p>There is a string:</p>
  
  <pre><code>var str = "a1c a12c a23c ac 1234 abc";
  </code></pre>
  
  <p>and a RegExp:</p>
  
  <pre><code>var re = /a(\d*)c/g;
  </code></pre>
  
  <p>I want to <strong>split</strong> <code>str</code> by <strong>number</strong> that between <code>a</code> and <code>c</code>, the result I want is:</p>
  
  <pre><code>['a','c a','c a','c a','c 1234 abc']
  </code></pre>
  
  <p>how to do it?</p>