title: Split string and keep delimiter in javascript plus conditions
body: <p>I need a method in javascript to split a string by the delimiter <code>FF</code>, which will almost always be followed by another <strong>any</strong> of this <code>(F0,F1,FA,FB,FC,FD,FE)</code> or in some minor cases by <code>00</code> or <code>01</code>. The final array will need to look like this:</p>
  
  <pre><code>var string = 'FFFC18FFFC20FFFC23FFFC27';
  'FFFC18FFFC20FFFC23FFFC27'
  var array = string.split(regex);
  ['FFFC18','FFFC20','FFFC23','FFFC27']
  </code></pre>
  
  <p>Eventually, an element could have less than 8 characters, like in this example:</p>
  
  <pre><code>var string = 'FFFA2701FFF0FFFA1801FFF0';
  'FFFA2701FFF0FFFA1801FFF0'
  var array = string.split(regex);
  ['FFFA2701','FFF0','FFFA1801','FFF0']
  </code></pre>
  
  <p>Finally, this case could also happen (a case in which the delimited <code>FF</code> could be followd by <code>00</code> or <code>01</code> too):</p>
  
  <pre><code>var string = 'FF00FFF0FF001801FFF0';
  'FF00FFF0FF001801FFF0'
  var array = string.split(regex);
  ['FF01','FFF0','FF001801','FFF0']
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p>What I tried and almost worked to me is just splitting by 'FF' and trying to add again the FF at the beggining of each element, but couldn't do it.</p>