Answer the question
In order to leave comments, you need to log in
JS RegExp - how to limit the number of characters?
Good day!
There is a regular check by phone number:
/(?:8|\+7)? ?\(?(\d{3})\)? ?(\d{3})[ -]?(\d{2})[ -]?(\d{2})/
Answer the question
In order to leave comments, you need to log in
what for regular season on phones? immediately in the desired format, let them enter.
Awesome plugin:
www.compnot.ru/javascript/input-mask-sozdaem-masku...
plugins.jquery.com/mask
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question