Skip to content
#

regex-validator

Here are 71 public repositories matching this topic...

Return true if the passed string looks like a valid US phone number. The user may fill out the form field any way they choose as long as it has the format of a valid US number. The following are examples of valid formats for US numbers (refer to the tests below for other variants): 555-555-5555 (555)555-5555 (555) 555-5555 555 555 5555 555555555…

  • Updated Jan 23, 2020
  • JavaScript

Improve this page

Add a description, image, and links to the regex-validator topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the regex-validator topic, visit your repo's landing page and select "manage topics."

Learn more