Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please help me how can i do it
Posted
Comments
Kornfeld Eliyahu Peter 22-Dec-15 3:48am    
For which country?
CPallini 22-Dec-15 3:54am    
Tell your operator.

1 solution

Use a Regular expression:
^\d{10}$

Will do the basic "This must be ten digits exactly" text.
After that, it's down to how numbers are organised in the current user country (which may not be ten digits)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900