Email Textbox Validation [SOLVED]

0 favourites
From the Asset Store
Forget about default textbox restrictions, you can create sprites atop of the textbox
  • jatin1726:

    The regex defines what can and can't appear in the email address; this part:

    ^[A-Z0-9._%+-]+

    ...defines what characters can appear before the "@". The "@" ensures that there has to be an instance of the "@" symbol.

    This part defines what can appear after the "@":

    [A-Z0-9.-]+\.[A-Z]{2,}$

    Note that neither of these parts allow "@"

    This isn't the only regex that can validate emails. If you google "regex" and "email" you will find a whole bunch of other examples, some more thorough than others.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • jatin1726:

    The regex defines what can and can't appear in the email address; this part:

    ^[A-Z0-9._%+-]+

    ...defines what characters can appear before the "@". The "@" ensures that there has to be an instance of the "@" symbol.

    This part defines what can appear after the "@":

    [A-Z0-9.-]+\.[A-Z]{2,}$

    Note that neither of these parts allow "@"

    This isn't the only regex that can validate emails. If you google "regex" and "email" you will find a whole bunch of other examples, some more thorough than others.

    Thanks a lot for such a detailed help. God bless u.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)