You need to sign in to do that
Don't have an account?
MRivas
Regex validation giving a false positive.
Hi all, I have a Regex for a phone validation and I want the phone to be entered in the following formats: XXXXXXXXXX, XXX-XXX-XXXX, (XXX) XXX-XXXX, (XXX)XXX-XXXX. Currently this validation is allowing false positives to be saved. In example (414 903-0980 or 343_989_0989 or 898)7879898. I am not sure how to fix it. Here is what I am using.
(REGEX(Phone, "\\D?(\\d{3})\\D?\\D?(\\d{3})\\D?(\\d{4})$"))
Thanks,
Hii MRIVAS
Please Mark It As Best Answer If It HelpsTry Below Validation
Thank You!
It is allowing me to save the phone numbers like this: (xxxxxxxxx or xxx)xxxxxxx