Validating email addresses

Need to validate email addresses using Work Fusion.
Take string input from the user and check if it is valid email id or not.

A valid email address should meet the below criteria.

  1. Only 1 @ should be present
  2. After @ there should be 1 dot(.) present
  3. After the last dot, there should be at least 3 characters
  4. Should not contain blank spaces

Example-

Valid email address abc@gmail.com

Invalid Email address abc@@gmail.com
abc@gmail.co
ab c@ gmail. com

Hi @Ramesh you can do it by matching the String to a Regex (in the If-Else action).

I think you need Regex [^ @]+@{1}[^ @]+\.[a-z]{2,3}

Thank you so much it is working :grinning:

1 Like

Hi
it is failing on the below scenario

After @ if I give 2 dots it should be invalid email but it is showing valid

please provide
solution

Try this one [^ @.]+@{1}[^ @.]+[.]{1}[a-z]{2,3}