function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gotherthanthougotherthanthou 

Force.com Email Field

Does anyone have the exact regex that force.com uses to validate it's email field type?
Ispita_NavatarIspita_Navatar
The email field type in salesforce allows emails of the following format xyz@abc.com. In the xyz portion only dots and underscores are allowed. Only one @ and only one dot is allowed The possible regex is as follows:-
^[A-Za-z0-9_\.-]+@[A-Za-z0-9_\.-]+[A-Za-z0-9_][A-Za-z0-9_]$