Email validation

how can we define email validation. can we give without regex expression?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Key things to look for are @ symbol, then a dot, then a 3 letter extension for a url, such as com, edu, gov, biz, net, co.uk, however many you want to define.

    right(local!possibleEmail, 4) returns the last four characters.  That should be in a whitelist containing .com, .gov, .edu, etc.

    Then you can find() or search() for @.

    There should be other rules to include, such as no spaces.  So you can exact(local!possibleEmail, cleanwith(local!possibleEmail, " ")

Reply
  • 0
    Certified Lead Developer

    Key things to look for are @ symbol, then a dot, then a 3 letter extension for a url, such as com, edu, gov, biz, net, co.uk, however many you want to define.

    right(local!possibleEmail, 4) returns the last four characters.  That should be in a whitelist containing .com, .gov, .edu, etc.

    Then you can find() or search() for @.

    There should be other rules to include, such as no spaces.  So you can exact(local!possibleEmail, cleanwith(local!possibleEmail, " ")

Children
No Data