You need to sign in to do that
Don't have an account?
mahesh kumar 117
I have a text field named"Emp_name" so that only characters are allowed not numbers,special characters
Is there any formula for this field
Thanks®ards
Mahesh
Thanks®ards
Mahesh
Try below:
SOLUTION: for name like Neha Sharma : NOT(REGEX(Name,"([A-Z][a-z]*)([\\s\\\"-][A-Z][a-z]*)*$"))
SOLUTION: for name like Neha sharma : NOT(REGEX(Name,"([A-Z][a-z]*)([\\s\\\"-] [a-z]*)*$"))
SOLUTION: for name like Neha : NOT(REGEX(Name,"([A-Z][a-z]*) $")
Thanks
Shephali
All Answers
Compares a text field to a regular expression and returns TRUE if there is a match. Otherwise, it returns FALSE. A regular expression is a string used to describe a format of a string according to certain syntax rules. https://help.salesforce.com/apex/HTViewHelpDoc?id=customize_functions_i_z.htm
Try below:
SOLUTION: for name like Neha Sharma : NOT(REGEX(Name,"([A-Z][a-z]*)([\\s\\\"-][A-Z][a-z]*)*$"))
SOLUTION: for name like Neha sharma : NOT(REGEX(Name,"([A-Z][a-z]*)([\\s\\\"-] [a-z]*)*$"))
SOLUTION: for name like Neha : NOT(REGEX(Name,"([A-Z][a-z]*) $")
Thanks
Shephali