Fix ctype_digit to preg_match