I want users to allow only phone numbers in following format
xxx-xxx-xxxx or xxxxxxxxxx all digits only . Can some one suggest a regular expression to do this ?
Something like this:
d{3}-d{3}-d{4}|d{10}
2.1m questions
2.1m answers
60 comments
57.0k users