Skip to main content

RegEx Cheat Sheet

Browse a searchable index of common regular expression patterns.

Email address
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
URL
https?:\/\/[^\s]+
IPv4 address
\b(?:\d{1,3}\.){3}\d{1,3}\b
Hex color
#(?:[0-9a-fA-F]{3}){1,2}\b
Digits only
^\d+$
Whitespace
\s+
Word boundary
\bword\b
Date (YYYY-MM-DD)
\d{4}-\d{2}-\d{2}
Phone (loose)
\+?\d[\d\s().-]{7,}\d
HTML tag
<[^>]+>
Slug
^[a-z0-9]+(?:-[a-z0-9]+)*$
Non-empty string
^(?!\s*$).+

How to Use

  1. 1Open the RegEx Cheat Sheet tool in your browser.
  2. 2Paste or type your content into the input field.
  3. 3The tool processes it instantly — no page reload needed.
  4. 4Copy the result with one click, or download it if available.

About this tool

Browse a searchable index of common regular expression patterns. A fast, no-nonsense utility for developers — runs client-side, no signup.

Frequently Asked Questions