title: Split string into array between to characters?
body: <p>So I'm trying to split string that I have in some not regular way. I tried to do something with regular expressions but I'm not so much into regex to invent something like that.</p>
  
  <p>Basically I have a string that look like this:</p>
  
  <pre><code>var links = "&lt;a&gt;4&lt;/a&gt;&lt;b&gt;&lt;c&gt;&lt;d&gt;&lt;e&gt;&lt;f&gt;";
  </code></pre>
  
  <p>And I wanna use a .split() js method to recieve them in array like so:</p>
  
  <pre><code>["&lt;a&gt;4&lt;/a&gt;", "&lt;b&gt;", "&lt;c&gt;", "&lt;d&gt;", "&lt;e&gt;", "&lt;f&gt;"]
  </code></pre>
  
  <p>So it's obviously that I need to split them on <code>&gt;&lt;</code> characthers but if I do this:</p>
  
  <pre><code>links.split("&gt;&lt;");
  </code></pre>
  
  <p>They are gonna split in the way I wanna but I'm gonna loose the <code>&gt;</code> and <code>&lt;</code> signs. example:</p>
  
  <pre><code>["&lt;a&gt;4&lt;/a", "b", "c", "d", "e", "f&gt;"]
  </code></pre>
  
  <p>This is not good solution for me.</p>
  
  <p>So basically my question is: Is it possible to make some kind solution with regex or something else to get array result as I imagined?</p>