regex - Regular Expression for Pakistan's mobile number -


i want regular expression mobile number start '+92' or '0' , user type onlye ten digits more.

did basic google search “regex pakistan mobile”? here solution first result:

^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$ 

Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -