Cheatsheet Pages / Regex Cheatsheet

A loose regex for international phone numbers

Phone numbers arrive in E.164 style, with or without the leading +.

Patterns use the syntax shared by PCRE / Python / JavaScript; engine differences are flagged in the cheatsheet where they matter. Test any pattern at regex101.com — and pick the matching engine.

\+?[1-9]\d{6,14}
# matches: +14155552671, 8613800138000 — validate properly server-side

Good to know

Tolerant by design — validate properly on the server side.

Regex Cheatsheet one-page card — patterns that actually work
The full one-page card — Regex Cheatsheet. Get the complete cheatsheet on GitHub