S
shapper
Hello,
I need to create a REGEX which accepts only phone numbers.
The phone numbers start allways with 261, 21, 96 or 91 and have 7
numbers after it.
Something like. 261 1223346, 21 2334456, etc.
I tried the following but it is not working:
^(?:261|21|96|91)\s\d{7}$
How can I do this?
Thanks,
Miguel
I need to create a REGEX which accepts only phone numbers.
The phone numbers start allways with 261, 21, 96 or 91 and have 7
numbers after it.
Something like. 261 1223346, 21 2334456, etc.
I tried the following but it is not working:
^(?:261|21|96|91)\s\d{7}$
How can I do this?
Thanks,
Miguel