You need to sign in to do that
Don't have an account?
DJ 367
REGEX Code is not working
Hello All,
I am validating on field as format ,any numeric and alpha numeric(4) then (-) again any numeric and alpha numeric(5)
Eg. AA12-A322R
Dinesh
I am validating on field as format ,any numeric and alpha numeric(4) then (-) again any numeric and alpha numeric(5)
Eg. AA12-A322R
NOT(REGEX(CurrentGenerators__c,"[a-zA-Z0-9]{4}[-][a-zA-Z0-9]{5}"))Regards,
Dinesh
The underlying regex engine of Salesforce is based on java.
You can made tests with this online tool: https://www.freeformatter.com/java-regex-tester.html
All Answers
NOT(REGEX(CurrentGenerators__c,"^[a-zA-Z0-9]{4}\\-\\^[a-zA-Z0-9]{5}"))
It is not working.
The underlying regex engine of Salesforce is based on java.
You can made tests with this online tool: https://www.freeformatter.com/java-regex-tester.html