I have this:
Code: Select all
preg_match("/([0-9]{2})([a-zA-Z])([0-9]{1,4})/i", $_POST["job_number"], $mat);
var_dump($mat);
and the input ($_POST["job_number"]) would be 02PR500 and I want to split that up. By "02" then "PR" then "500". Of course 02 and 500 could be any value between 1 and 9000. What am I doing wrong? Any help is greatly appreciated.
Will