You need to sign in to do that
Don't have an account?
pradeep prakash
Syntax Error using regex in salesforce validation rule
NOT(
OR(
ISBLANK(DOS_ID__c),
REGEX(DOS_ID__c,"^([CT]{2}[0-9]{8}\s?)+([,]\s?([CT]{2}[0-9]{8}\s?)+)*$")
)
)
I get syntax error using this. please help.
Requirement: in a custom field the value entered should be CT***********, CT***********, etc or CT*********
CT followed by 8 digits. it can be single entry or comma seperated repeated entry.
OR(
ISBLANK(DOS_ID__c),
REGEX(DOS_ID__c,"^([CT]{2}[0-9]{8}\s?)+([,]\s?([CT]{2}[0-9]{8}\s?)+)*$")
)
)
I get syntax error using this. please help.
Requirement: in a custom field the value entered should be CT***********, CT***********, etc or CT*********
CT followed by 8 digits. it can be single entry or comma seperated repeated entry.
Try this
Thanks
Rupal.
Mirketa Pvt Ltd.
This worked for me