Tag: Regular Expressions
-
Regex: Make sure a phone number is 10 digits
I needed a generic validator for a phone number, and I started thinking about the format of the number but at the end of the day I just want to be sure that there are 10 digits in the entry, and the user can decorate that however he or she like with brackets, hyphens, dots […]