求一php正则表达式 万分谢谢!!!

2024-11-20 04:17:50
推荐回答(2个)
回答1:

$reg = "/[a-zA-Z0-9@\.]+\t{2}[a-zA-Z0-9]+\t{2}[a-zA-Z]+\n/is";
$str = "a123.@\t\taa21\t\taaa\n";
preg_match_all($reg,$str,$tmp);
?>

回答2:

/^[a-z0-9@\.]\t{2}[a-z0-9]\t{2}[[a-z]$/is