I'm having trouble with this, I did find a couple of reg ex examples but I can't seem to get them to work for me.
$string = '1. A post-hardcore band from Brazil 2. A rock band from Sweden';
I need to retrieve everything inbetween the "1." and "2."
Is there some kind of simple splitting function in PHP that I could use like so?
$result = string_between_chars($string, "1. ", "2 .");
Or, if I'm matching for numbers
preg_match('~(1.|2.|3.|4.)~', ($string), $matches
Is there anyway I could modify this to be left with the result of
[0] => 1. A post-hardcore band from Brazil
[1] => 2. A rock band from Sweden