Skip to main content
June 10, 2022
Question

Email validation

  • June 10, 2022
  • 6 replies
  • 0 views

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

    6 replies

    davel001150
    June 10, 2022

    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, " ")

    vikashk739
    June 10, 2022

    Hi, you can refer this post as well https://community.appian.com/discussions/f/administration/7353/way-to-validate-email-addresses. Mike has shared post regarding and it works well.

    mikes0011
    Brainy
    June 10, 2022

    [emoticon:511c26ed5d9d45199e0cee82a4d1e7b9]

    The Expression Guru
    mikes0011
    Brainy
    June 10, 2022

    Why wouldn't you want to use RegEx?  The (very very) old thread Vikash already linked for you will contain my (very very) old-but-still-working OOB expression rule that handles basic email address validation, however the Regex solution is quite a bit more powerful.

    The Expression Guru
    neilb2444Author
    June 10, 2022

    is there any alternative of RegEx ?

    mikes0011
    Brainy
    June 10, 2022
    is there any alternative of RegEx ?

    Can you clarify what you're after here, and why?  As I mentioned already, the thread linked above contains a non-Regex solution I posted here *years* ago, but there's no good reason to not use the Regex plugin IMHO.

    The Expression Guru