I would like to set up a validation rule to check that there is at least two digits in the string. in Python I would go with this
NOT(REGEX(Field_Name__c, "(?=^(?:\D*\d\D*){2,}$)"))
But Salesforce seem to refuse this input for regex.
Does someone know how I would verify this.
Correct version: AAAA22AAAAA (at least 2 digits) Wrong version: AAAAAAAAAA (no digits
{2,}
after\d
.(?=^(?:\D*\d{2,}\D*)$)
?