1.邮箱的正则匹配:
preg_match("/^w+((-|.)w+)*@[A-Za-z0-9]+((.|-)[A-Za-z0-9]+)*.[A-Za-z0-9]+$/", $email);
2.手机的正则匹配:
preg_match("/^13[0-9]{1}[0-9]{8}$|15[0189]{1}[0-9]{8}$|189[0-9]{8}$/", $phone);