Pattern
/(?:\+?1[-.\s]?)?\(?[2-9]\d{2}\)?[-.\s]?\d{3}[-.\s]?\d{4}/Sample text
(415) 555-2671 415-555-2671 +1 415 555 2671 555-2671Test this pattern in the editor
North American formats with optional country code.
/(?:\+?1[-.\s]?)?\(?[2-9]\d{2}\)?[-.\s]?\d{3}[-.\s]?\d{4}/(415) 555-2671 415-555-2671 +1 415 555 2671 555-2671Test this pattern in the editor
Capture local and domain parts from common email shapes.
Match protocol, host, and optional path/query.
Require length and mixed character classes (demo only).
3–16 chars: letter start, then letters, digits, underscore.
International numbers with leading + and country code.
Common +7 / 8 mobile formats with optional separators.