I've been looking at tonnes of questions, documents and tutorials on regexp and how to split and keep the delimiter and still don't know how to do it...
This the string I have...
<span class="code special"><html></span>
and I want to split it into this one...
"<span class="code special">", "<html>", "</span>"
So I was trying to split it on the less than and greater signs... but it works, but keeps removing the split characters...
I have this one at the moment...
'<span class="code special"><html></span>'.split(/[<>]/);