<?php $string="1001-sdfjh"; $matches=array(); preg_match("/^(\d{4})-([A-Za-z0-9]{5})/", $string, $matches); print_r($matches); ?>
You have javascript disabled. You will not be able to edit any code.