Regex For Validate Correct Email Format

Hi guys

How can i set regex to validate the correct email format? i tried using those regex but all not working:

^\w+@[a-zA-Z_]+?.[a-zA-Z]{2,3}$

^[\w-.]+@([\w-]+.)+[\w-]{2,4}$

[\w-]+@([\w-]+.)+[\w-]+

^\w+[\w-.]@\w+((-\w+)|(\w)).[a-z]{2,3}$

Try this

not working :frowning:

Could you share sample emails? Faking recipients to avoid GDPR issues.

You have several samples at

just simple email like [email protected]

im not sure if this is right setup for regex.

Really strange. That’s a simple email and has to be valid.
Could you share JSON output of the previous node?

here,

After HTTP call, N items will be checked in IF node using regex (HTTP returns an array with one element).

IF node has to check regex against property “body” of the first item of the array.

Hope this helps

1 Like

haha i just check again and i made wrong setup. i should use last node value . and now its working. thanks mate!

Nice to know it works.

You are welcome!

Hi together,

is there any chance to get a valid regex code to validate the emails.
With the marked solution in this page: http://emailregex.com/ I have tried everything inside the IF-node but get no working results.

Sometimes it gets some false matches but they are then duplicated 10 times (they come in without duplicates) and the false-matches are not really correct.

It would be really nice to receive a regex string to do this validation :slight_smile:

1 Like