I have text box where user enter phone number and I have to implement that logic that phone number entered should be of minumum 10 digits.Otherwise it shows error message.User can enter phone number with -,+,. pattern.
So I have created key like
'^[\d{10}\-\+\.]+$'
but it still allows user to enter phone digit less than 10.I thought giving value like
'^[\d{10,10}\-\+\.]+$' means user can enter only 10 digits and user can enter phone number with -,+ and . expression.Can anyobdy help me with the regex pattern.Where user can enter only phone number with minimum 10 digit and +,- amd . can be used and there should be no manixmum limit for entering digit.
...
Go to the complete details ...