<?php $str = "lorem ispmes dolter yexy tesy 201812321910AT l tesyui lorem ispmes dolter gjexy tesy 201812321810AT hekfl lorem tesxts 201812321910AT-001 lot kyesu oerd 201812321910AT-001 lfs tes ol sghn"; preg_match_all("/(\d{12}AT.*?)\s/", $str, $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.