Home >Backend Development >PHP Tutorial >php detect email password_PHP tutorial

php detect email password_PHP tutorial

WBOY
WBOYOriginal
2016-07-12 09:04:011011browse

php check email password

$pattern = "/^[0-9a-zA-Z_-] (.[0-9a-zA-Z_-] )*@[a-zA-Z0-9_-] (.{1}[a-zA -Z0-9_-] )*.{1}[a-zA-Z]{2,4}$/i";
if(!preg_match($pattern,$email)){
echo "Email does not comply with the rules";
}
//$patternpwd = "/[A-Za-z]{6,15}/";
//$patternpwdnum = "/[0-9]{6,15}/";
$pa="/^(?![0-9] $)(?![a-zA-Z] $)[0-9A-Za-z]{6,16}$/";/ / no less than 6 alphanumeric characters
if(!preg_match($pa,$pwd)){
echo "Password does not comply with rules";
}

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1075138.htmlTechArticlephp detect email password $pattern = /^[0-9a-zA-Z_-] (.[0- 9a-zA-Z_-] )*@[a-zA-Z0-9_-] (.{1}[a-zA-Z0-9_-] )*.{1}[a-zA-Z]{2 ,4}$/i; if(!preg_match($pattern,$email)){ echo The email address does not match...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn