Regex Cheatsheet
Interactive regex cheatsheet with copy-ready patterns.
Anchors
^Start of string/line$End of string/line\bWord boundary\BNon-word boundaryQuantifiers
*Zero or more+One or more?Zero or one{n}Exactly n times{n,}n or more times{n,m}Between n and m*?Zero or more (lazy)+?One or more (lazy)Character Classes
.Any char except newline\dDigit [0-9]\DNon-digit\wWord char [a-zA-Z0-9_]\WNon-word char\sWhitespace\SNon-whitespace[abc]Any of a, b, or c[^abc]Not a, b, or c[a-z]Range: a to zGroups & References
(abc)Capture group(?:abc)Non-capture group(?<name>abc)Named group\1Back reference(?=abc)Positive lookahead(?!abc)Negative lookahead(?<=abc)Positive lookbehind(?<!abc)Negative lookbehindCommon Patterns
^[\w.-]+@[\w.-]+\.\w{2,}$Email^https?://.*$URL^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$IPv4^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$Hex color^\d{4}-\d{2}-\d{2}$Date (YYYY-MM-DD)^\+?\d{10,14}$PhoneClick any pattern to copy
What This Tool Helps You Do
Regex Cheatsheet helps you interactive regex cheatsheet with copy-ready patterns. It is designed for developers, QA teams, SREs, API integrators, and support engineers who need regex reference, regex cheatsheet, and patterns without switching into a heavier toolchain than the task actually requires.
The developer category groups browser-based helpers for tokens, schemas, formats, HTTP references, code generation, and debugging tasks. On this page, the focus is regex reference and regex cheatsheet. For this tool, the main processing happens in your browser tab and the output is prepared on the same device. That makes it a better fit for quick edits, conversions, cleanup, and review work that should stay close to the source file or pasted data.
Best For
Recommended Workflow
Paste the text, code, token, or URL you want to inspect, transform, clean, or export.
Tune the available inputs and settings so regex cheatsheet produces output that matches your workflow instead of a generic default.
Preview the result from regex cheatsheet, then copy, download, or export the finished output for the next step in your workflow.
Processing and privacy
For this tool, the main processing happens in your browser tab and the output is prepared on the same device. That makes it a better fit for quick edits, conversions, cleanup, and review work that should stay close to the source file or pasted data.
