In this expression below it checks for a valid email. My question is how can I check for ppl|pplweb is in the email address after the @ sign
!preg_match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you can split your
$emailvar in 2 components of the array separating it by the @ signand then search by the ppl/pp/web patterns in the first component of your array
this way, maybe the code is a bit longer but short regular expressions are better to mantain.