Regex · US phone number · Free
US phone number regex.
Matches a US phone number with optional parentheses and dashes, dots, or spaces as separators. Copy the pattern below, see what it matches, then tweak it for your exact case with the free generator.
The pattern
/\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}/g
✓ Matches
(555) 123-4567555-123-4567555.123.4567✗ Doesn't match
12-34phone1234567Need a variation? Generate one
Other common patterns
Parsing and pattern-matching are everywhere in AI systems. MindloomHQ teaches you to build them for real — agents, RAG, pipelines — with projects and certificates.
Explore MindloomHQ →