title: Split string and get array using regExp in javascript/node js
body: <p>I am writing js code to get array of elements after splitting using regular expression.</p>
  
  <pre><code> var data = "ABCXYZ88";
   var regexp = "([A-Z]{3})([A-Z]{3}d{2})";
   console.log(data.split(regexp));
  </code></pre>
  
  <p>It returns 
  [ 'ABCXYZ88' ]</p>
  
  <p>But I am expecting something like
  ['ABC','XYZ','88']</p>
  
  <p>Any thoughts?</p>