<?php $string = "abdsasdbm absdas dbasdn mda 2-01602171-63543"; $regex = "/[0-9]{1}-[0-9]{8}-[0-9]{5}/"; preg_match($regex, $string, $result); var_dump($result);
You have javascript disabled. You will not be able to edit any code.