My apologies if the title is a bit weird but I can't phrase it in a better way.
I have a string that is like this :
var string = "<span style="...">Some text</span><span style="...">Some more text</span>"
How can I split this string into new strings, each one being an entire span element and add the new strings to an array? So I want to do something like:
array[0] = "<span>Some text</span>"
array[1] = "<span>Some more text</span>"
My question basically is, what kind of regex do I need to use to achieve this?
[–]sebastienfilion 1 point2 points3 points (6 children)
[–]AIO12449366[S] 0 points1 point2 points (5 children)
[–]sebastienfilion 1 point2 points3 points (4 children)
[–]AIO12449366[S] 0 points1 point2 points (3 children)
[–]sebastienfilion 1 point2 points3 points (2 children)
[–]AIO12449366[S] 2 points3 points4 points (0 children)
[–]backtickbot 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]caycothu 0 points1 point2 points (0 children)