PHP does not verify the message of the Big God

Source: Internet
Author: User
PHP does not use regular verification email What's the big God
Condition 1: The first character must be English or numeric or underlined with which string function?
Condition 2: Must contain an @ STRING function Yes?
Condition 3: Contains more than one. Character
Conditional 4:@ characters before the.
Condition 5:[email Protected]
Condition 6: Length cannot be longer than 30 this knows with Mb_strlen
------to solve the idea----------------------
References:
would like to know, such an application scenario, what is more appropriate than the regular?


Character-by-word analysis is simple, and regular expressions seem concise but inefficient
  • 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.