this regex is working ok for oman mobile number,s
^(\+968|968|00968)?\d{8}$
Oman Country Code +968
and 8 digit mobile number,
Mobile Numbers starts with 2,7,9 I want to edit this regex to force numbers starting with 2,7 & 9
I've tried to add [22-6]|[71-2]|[78-9]|[901-9]|[91-9]
which are the mobile codes of different regions of oman.
^(\+968|968|00968)[2|7|9]?\d{8}$
tried to do it simple but it doesn't accepts mobile with out country codes it should accepts 8 number digit starting with 2 or 7 or 9
Following your explanations, it should be: ^((\+|00)?968)?[279]\d{7}$
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments