In short, like this:
> l = ['asdf', '<br>', 'lorem', 'ipsum', '<hr>', 'dollar', 'sit', 'amex']
> l.split(/<.+>/)
[
[ 'asdf' ] ,
[ 'lorem', 'ipsum' ] ,
[ 'dollar', 'sit', 'amex' ]
]
I wrote join-and-split one, but it seem slow with large array.
Is there any better solutions? indexOf()?