Here is the sample string with my regex and code:
$str = "Supp Fees:
----------
Oral Glucose
Glucagon
OXYGEN";
$ptn = "/----------(?:\r\n(.+))+/m";
preg_match_all($ptn,$str,$matches);
echo"<pre>";
print_r($matches);
echo"</pre>";
I'm trying to match every line after '----------' the pattern above only returns the first line (Oral Glucose). I can repeat the '\r\n(.+)' part and return another line but there is no telling how many lines there will be.
Thanks!