Activity Forums Salesforce® Discussions How can we provide email validations in Salesforce?

  • Piyush

    Member
    August 8, 2019 at 4:19 am

    Hi,

    For the Email Validation in salesforce apex, you can use the regular expression as follow:-

    String emailRegex = '([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})';

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos