You want preg_match_all
:
preg_match_all("/(\d{2}.\d{2}.\d{4})+/", $m[0], $se);
print_r($se);
Also, using $m[0]
makes me suspect that this was a match from a previous preg_match
or preg_match_all
? Maybe you could do it there and not have so many steps?