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