How to split string in JavaScript with regular expression : <p>I have following html. I want to split it by <code>&lt;span&gt;</code> tag.</p>

<pre><code>let storyHtml = "&lt;span&gt;People&lt;/span&gt; born in different ages are different from each other in various aspects. The world is changing at &lt;span&gt;a&lt;/span&gt; rapid pace and thus the difference between &lt;span&gt;people&lt;/span&gt; born in different times is inevitable.";

let allSplitPart = storyHtml.split(/&lt;span&gt;.*?&lt;\/span&gt;/gim); 
let allMatchPart = storyHtml.match(/&lt;span&gt;.*?&lt;\/span&gt;/gim);

// Output 1: ["", " born in different ages are different from each other in various aspects. The world is changing at ", " rapid pace and thus the difference between ", " born in different times is inevitable."] 

//Output 2: ["&lt;span&gt;People&lt;/span&gt;", "&lt;span&gt;a&lt;/span&gt;", "&lt;span&gt;people&lt;/span&gt;"]
</code></pre>

<p><strong>What output I want:</strong></p>

<pre><code>["&lt;span&gt;People&lt;/span&gt;", " born in different ages are different from each other in various aspects. The world is changing at ","&lt;span&gt;a&lt;/span&gt;"," rapid pace and thus the difference between ","&lt;span&gt;people&lt;/span&gt;", " born in different times is inevitable."]
</code></pre>
