Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/03/2024 11:34 PM
Hi Everyone,
We have a requirement where we need to add a validator for phone number.
It should start with + and then digits.
Below is the validator I am using under Validation Condition - ${phoneNumber = ~ /^\+?[1-9]\d{1,14}$/}
But for all the phone number it is giving validation failed error.
Tried below combination:
+14155552671
+442071838750
+551155256325
Any help is appreciated.
06/03/2024 11:42 PM
Refer https://forums.saviynt.com/t5/identity-governance/phone-regex-validator/m-p/36824#M20847
06/03/2024 11:51 PM
Same I tried but not working
06/04/2024 12:15 AM
@Shubhamjain27 try below
^([\+0-9()]{1,5}(\s?))?[0-9\s.\-()]{8,18}$
06/04/2024 12:52 AM
Tried the above, working in regex online validator but not in Saviynt.
Below is the screenshot of DA:
and tried the below regex and combinations:
Tried below regex values:
^([\+0-9()]{1,5}(\s?))?[0-9\s.\-()]{8,18}$
/^([\+0-9()]{1,5}(\s?))?[0-9\s.\-()]{8,18}$/
~ /^([\+0-9()]{1,5}(\s?))?[0-9\s.\-()]{8,18}$/
It is not showing any error but the validation fails: