title: Split string on matching patterns using regular expressions
body: <p>I am trying to split a string by matching some patterns using regex,
  for instance i have <code>&lt;span&gt;Hello World&lt;/span&gt;</code> and the result would be <code>["&lt;span&gt;", "Hello World", "&lt;/span&gt;"]</code></p>
  
  <pre class="lang-js prettyprint-override"><code>// Tried this
  console.log(arr.split(/(&lt;*&gt;)/));
  // and this:
  console.log(arr.split(/(^&lt;$&gt;)/));
  </code></pre>