Become a Member
Hi,
To check the guest's phone numbers, I use the validator "NwaSmsIsValidPhoneNumber". It works fine but now I need to force guests to add a + before the number. Like +044234657890
How can I do this ?
Thanks
Dimitri
Change the Validator to IsRegExMatch and use this regex:
^\+(?:[0-9] ?){6,14}[0-9]$
That should enforce the E.164 standard.
Thanks, I will try it.
A fast feedback, working fine thanks.
I need a new regex that checks that there are only numbers with no spaces and max lenght is 15 digits. Anyone can help me, thanks.
Regards
Ok thanks, it's allright.