I am looking for a regular expression (using preg_split()) that can be used to split the following string:
hello<span id="more-32"></span>world
Desired result:
$var[0]=hello
$var[1]=world
I tried using this code put it didn't work
preg_split('/<span id="more-\d+"></span>/','hello<span id="more-32"></span>world')