Search
Type in the search box to filter patterns.
Regular expression syntax, character classes, and ready-made patterns with plain-English explanationsFree regex cheat sheet: character classes, quantifiers, anchors, groups, flags, and copy-ready patterns for email, URL, phone, and dates. Searchable and printable.
Regular expression syntax, character classes, and ready-made patterns with plain-English explanations
44 of 44 entries shown. Click Copy on any snippet.
.\d\w\s[aeiou][^0-9][a-zA-Z]\.a*a+colou?r\d{4}\d{2,4}\d{3,}a*?<.*?>^helloworld$\bcat\b^\d+(\d+)-(\d+)(?:https?://)(?<year>\d{4})cat|dog(\w+) \1/abc/i/\d+/g/^\w+/gm/a.*b/s/\p{L}/u[\w.-]+@[\w-]+\.[a-z]{2,}https?://[^\s/$.?#].[^\s]*\+?[\d\s().-]{7,}\d{4}-\d{2}-\d{2}\d{2}:\d{2}#[0-9a-fA-F]{6}\b\b(?:\d{1,3}\.){3}\d{1,3}\b^[a-z0-9]+(?:-[a-z0-9]+)*$<[^>]+>\^$.*+?()[]{}|\t \n \r\d+(?=px)\d+(?!px)(?<=\$)\d+Type in the search box to filter patterns.
Click Copy on any pattern to grab it.
Print the page for a desk reference.
Regular expressions are a compact language for matching text: character classes like \d, quantifiers like +, anchors like ^, groups for capturing, and flags that change matching behavior. This cheat sheet collects the syntax you actually use, each with a plain-English explanation.
It also includes battle-tested patterns for email, URLs, phone numbers, dates, hex colors, and slugs. Search to find what you need, copy with one click, and print it for your desk.

Discover the technology stack behind any website in seconds. Our free Technology Stack Detector uncovers CMS, frameworks, hosting, and analytics instantly.
Read article →
Free HTTP status checker. Check any URL's status code, trace redirect chains hop by hop, and fix 404, 301 and 500 errors before they silently hurt your SEO.
Read article →