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
Former Employee

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


Diane Miller

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-. ↩︎