0

I want a validation rule that should allow only number (0-9) and a specific string ('N/A') which contains a special character also.

NOT(REGEX(Code__c, "[0-9,;N/A]*"))

The above validation rule is not working.

2
  • 3
    Not sure of the regex grammar support, so this is a comment not an answer. Try "[0-9]+|[Nn]/[Aa]" which means one or more numeric digits OR N/A in a case insensitive manner.
    – Phil W
    Jul 16, 2019 at 11:13
  • @PhilW Thanks it's working now.
    – Zayn
    Jul 16, 2019 at 11:39

1 Answer 1

0

Try "[0-9]+|[Nn]/[Aa]" which means one or more numeric digits OR N/A in a case insensitive manner.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .