Regular expression resolution for verifying mailboxes

Source: Internet
Author: User
Verify the regular expression of the mailbox
Who can send a mailbox under the regular expression reference.
I understand the email rules [email protected]

/^[\w-]+@[\w-]+\. [\w-]+$/(Is this OK?)

Are there any privileged mailboxes that need to be considered?


QQ Mailbox launched VIP mailbox domain, Members enjoy VIP mailbox registration and use right! [Email protected] @qq. com two domain names pointing to the same mailbox, the same letter, the same receipt, the only manifestation of your distinguished status and privileges.


Privileged mailbox Subvert my previous mailbox rules, so what are the rules of the mailbox?
------to solve the idea----------------------
/^[\w\-\.] +@[\w\-\.] + (\.\w+) +$/
------to solve the idea----------------------
At least 6 bits, up to 32 bits, can have multiple after @. , such as you say @ vip.qq.com, generally this is the mailbox rules, other special and existing mailboxes to make corresponding changes (should be very few)
  • 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: info-contact@alibabacloud.com 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.