I need to parse a string and get the numbers between 2 delimiters. I need to be sure they're numbers. I tried something like this but doesn't work as expected.
if (preg_match_all("/[^0-9](?<=First)(.*?)(?=Second)/s", $haystack, $result))
for ($i = 1; count($result) > $i; $i++) {
print_r($result[$i]);
}
What's wrong with the regex?