Skip to content

Instantly share code, notes, and snippets.

@murrayinman
Created August 4, 2022 20:53
Show Gist options
  • Save murrayinman/8a30d64760270037ad718167df88903e to your computer and use it in GitHub Desktop.
Save murrayinman/8a30d64760270037ad718167df88903e to your computer and use it in GitHub Desktop.

Regex Recipes

US Phone Number Check

/^(\d{3}-|\(\d{3}\)\s?)\d{3}-\d{4}|[0-9]{10}$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment