What I currently have,
$file = "1234123412341234 | 11218 | 9178814202";
preg_match('/(?P<5digit>[0-9]{5})$/D', $file, $match);
echo $match["5digit"];
Basically I want it to grab "11218". But instead it's grabbing 14202 from the other line. Is there any way to just get it to match exactly 5 digits and nothing else?