You need to sign in to do that
Don't have an account?
asish1989
Regex For 999-999-9999
Hi
can any one tell me regex form of 999-999-9999 this?
I have used phoneRegex = '\\D*?(\\d\\D*?){10} but Now I want to restrict the special charatcter entry. It is acepting all the special characters
I am giving this input.It is taking, I want to restrict that.
how will I do, please give me some suggession as soon as possible.
Thanks
Thanks Everyone for reply I got solution,
I have used this regex expression ^\\(\\d{3}\\)\\s?\\d{3}-\\d{4}
Thanks
All Answers
Try this :
^\d{3}-\d{3}-\d{4}$
If this helps you..please mark as Solved..and hit Kudos....so that others can benefit!
~Sumit
http://forceguru.blogspot.in/2011/06/using-regex-in-validations.html
Hope this helps you.
Hi
I am sorry, I want regex for this format (999) 999-9999.I f you enter simply number and click on out side It will convert to this format,But I want to avoid special character.
Please help me as soon as possible
Thanks
Thanks Everyone for reply I got solution,
I have used this regex expression ^\\(\\d{3}\\)\\s?\\d{3}-\\d{4}
Thanks