cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Need to know email address validation logic

vaidyarm
Contributor

Hi,

I need to setup a logic to filter out only valid email address, might use that logic in filters, conditional or mappers. logic should able decide which email address valid.

For ex : test@test687 is invalid and test@test687.com or test@test687.edu etc are valid

Thanks

12 REPLIES 12

dmiller
Admin Admin
Admin

What about complex domains such as country identified like in.company.com?


Diane Miller
Community Manager

Yes if such should be allowed

bojanvelevski
Valued Contributor

Hey @vaidyarm ,

You can use regex:

$email.match(/[1]+@([\w-]+.)+[\w-]{2,4}$/g)

Regards,
Bojan


  1. \w-. โ†ฉ๏ธŽ

This did not work, used it for the below invalid idโ€™s but do not work

automatedclean@00d5g000005evyzea4
autoproc@00d5g000005evyzea4
noreply@00d5g000005evyzea4


  1. \w-. โ†ฉ๏ธŽ