Common Regex Patterns
A searchable cheat sheet of regular expressions for phone numbers, email addresses, ID numbers, dates, IP addresses and more, with a built-in tester.
How to Use
The page lists every regex category by default, with several common patterns under each one. Each entry shows the pattern's name, the regular expression itself and sample data.
Search: type a keyword into the search box at the top (phone, email, date and so on) to filter the patterns instantly.
Copy and test: click the copy or test button on the right of a row, and the pattern is dropped into the regex input in the tester at the bottom and matched once automatically.
Online testing: in the tester at the bottom you can enter your own expression and test text, then see the result line by line, with a green check for a match and a red cross for no match.
Features
- Browse by category: organized into phone numbers, email addresses, ID numbers, numeric values, dates and times, networking, passwords and more so you can find the right pattern fast
- Live search: fuzzy search by name, expression or sample data, filtering as you type
- One-click copy: copy any expression to the clipboard with a single button
- Built-in tester: check whether an expression matches your target text without leaving the page
- Sample data: every pattern ships with example data to make its purpose clear