Skip to main content
Known Participant
Jun 10, 2022 12:35 PM UTC
Question

Email validation

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

    6 replies

    davel001150
    Inspiring
    Jun 10, 2022 12:51 PM UTC

    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
    Inspiring
    Jun 10, 2022 1:41 PM UTC

    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
    Jun 10, 2022 2:16 PM UTC

    [emoticon:511c26ed5d9d45199e0cee82a4d1e7b9]

    The Expression Guru
    mikes0011
    Brainy
    Jun 10, 2022 2:17 PM UTC

    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
    Known Participant
    Jun 10, 2022 2:19 PM UTC

    is there any alternative of RegEx ?

    mikes0011
    Brainy
    Jun 10, 2022 2:21 PM UTC
    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