正则匹配手机号前面139开头的手机号 $str = '13812345678';$pattern = '/^139d{8}$/';preg_match($pattern,$str,$macth);var_dump($macth);