CoShareX Logo
HomeBlogUtilitiesTop 20 Common Regex Patterns Cheat Sheet (Email, URL, IP, Phone)
Utilities

Top 20 Common Regex Patterns Cheat Sheet (Email, URL, IP, Phone)

Published 2026-08-20
4 min read
By CoShareX

Having a ready-to-use library of common regular expression patterns saves time during form validation and data parsing.

Top Common Regex Patterns

1. Email Address Validation

^\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b$

https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)

Featured Tool

Regex Tester

Test and debug regular expressions online with real-time match highlighting, group capture extraction, and flag toggles client-side in the browser.

3. IPv4 Address Matching

^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$

4. Date Formats (YYYY-MM-DD)

^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$

5. Strong Password Constraint (Min 8 chars, 1 letter, 1 number)

^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$