I try to split the list of sentences which have html tags as below:
The <a href="sy.com" id="sy">sky</a> is clear and the <a href="st.com" class="st">stars</a> are twinkling.
They were <a href="etc.com" id="et">excited</a> to see their first sloth.
Douglas figured the best way to <a href="etc.com" id="et">succeed</a> was to do the <a href="opt.com" class="op">opposite</a> of what he'd been doing all his life.
The result I want is as below:
[The, <a href="sy.com" id="sy">sky</a>, is clear and the, <a href="st.com" class="st">stars</a>, are twinkling.]
[They were, <a href="etc.com" id="et">excited</a>, to see their first sloth.]
[Douglas figured the best way to, <a href="etc.com" id="et">succeed</a>, was to do the, <a href="opt.com" class="op">opposite</a>, of what he'd been doing all his life.]
How am I able to do it with RegExp in order to get above result?