For questions about email verification, please take a look at if (! Ereg (& quot; ^ [a-zA-Z0-9 _.] + @ ([a-zA-Z0-9 _] + .) + [a-zA-Z] {2, 3 }$ & quot;, $ email) {help me to see if this is correct? Can I verify the email addresses of all rules? For details about gsgsg email verification, please take a look.
If (! Ereg ("^ [a-zA-Z0-9 _.] + @ ([a-zA-Z0-9 _] +.) + [a-zA-Z] {2, 3} $", $ email )){
Can you help me see the problem? Can I verify the email addresses of all rules?
Gsgsg@xx.com
Gsdg.ee@xx.com.cn
Tert_erw@xx.com
In addition, the email address is usually underlined with an underscore (_). However, someone suggested that the email address contains an underscore, how can I modify the above code so that the email address with the hyphen "-" can pass?
Rgter-fsf@xx.com
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.