Skip to main content

Hi everyone, 

I have validation in flow. The expression is [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4} but it does not give an error for test@test..com (two dots). How can I update it for not allowing that?

 

Thank u. 

4 respostas
  1. Maham Hassan (ConX Digital) Forum Ambassador
    25 de jul. de 2022, 17:52

    Hey Deniz, 

     

    Try Below for validating Email formula.

    NOT(REGEX( Custom_Email_Field__c ,'

    ([a-zA-Z0-9_\\-\\.]+)@((\\[a-z]{1,3}\\.[a-z]{1,3}\\.[a-z]{1,3}\\.)|

    (([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})'))

0/9000