Regex Cheatsheet - Regular Expression Quick Reference

Quick reference for regular expression patterns. Character classes, quantifiers, anchors, and common patterns.

Share
Back to Regex Cheatsheet

Phone Number Pattern

Common Pattern

Match international or local phone number format

Pattern

^\+?[1-9]\d{1,14}$|^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$

Examples

+86 138-0000-0000

Chinese mobile (international)

Matches: +8613800000000

(555) 123-4567

US phone format

Matches: (555) 123-4567

Related Tools

More Text Tools