Verify the regular expression of the Mailbox

Source: Internet
Author: User
To verify the regular expression of a mailbox, see.
I understand the mailbox rules X@X.X

/^ [\ W-] + @ [\ w-] + \. [\ w-] + $/(does this work ?)

Do you need to consider some privileged mailboxes?

The VIP mailbox domain name has been launched in QQ mail, and members can register and use VIP mailboxes exclusively! The domain names @ and @ registered with the same QQ number point to the same email address. the same email address, the same email address, and only your distinguished identity and privilege are displayed.

What are the mailbox rules if a privileged mailbox subverts my previous mailbox rules?

Reply to discussion (solution)

/^ [\ W \-\.] + @ [\ w \-\.] + (\. \ w +) + $/

What are mailbox rules?

At least 6 bits, up to 32 bits, @ can be followed by multiple ., for example, you mentioned @ this is generally the mailbox rule, and other special and existing mailboxes are modified accordingly (should be few)

HTML5 can be used for direct verification.

HTML5 can be used for direct verification.

Don't you understand?
Related Article

Contact Us

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: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.