function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Deborah PerrottDeborah Perrott 

Validation Rule code query on fax number using the REGEX function

Hi there
I have inherited a org which has a phone number validation rule (for international numbers) but I cant work out what the format of the phone number should be based on the code (im not a coder) - can anyone tell me please?

Validation rule is NOT(REGEX( Fax , "^\\+[0-9]{1,4} [0-9]{1}[0-9]"))
Girija Joshi 14Girija Joshi 14
what do you mean by international numbers? you should restrict the rest result you want to enter, ^+[0-9]+[0-9]{10} something like that. give me couple of examples of fax number you might be seeing. then i might be able to suggest you the regex