About the Regex Tester
Write a regular expression and test it against your sample text with live match highlighting, a numbered match list with capture groups, flag toggles (g, i, m, s) and a built-in cheat sheet.
Iterating on a regex with instant visual feedback is dramatically faster than trial-and-error in code.
How to use the Regex Tester
- Enter your pattern and choose flags.
- Paste test text — matches highlight instantly.
- Review the match list with capture groups; consult the cheat sheet as needed.
Common uses
Building validation patterns (emails, phones)
Extracting data from logs
Learning regex interactively
Frequently asked questions
Which regex flavor is used?
JavaScript (ECMAScript) — the same engine as Node.js and browsers.
What do the flags mean?
g = all matches, i = case-insensitive, m = ^ and $ match per line, s = dot matches newlines.
Why does my regex freeze on some inputs?
Nested quantifiers can cause catastrophic backtracking. Keep patterns specific and avoid stacking .* inside groups.
Related tools
JSON Formatter & Validator
Beautify, validate and minify JSON with clear error locations.
Developer ToolsUUID Generator
Generate cryptographically secure UUID v4 identifiers, in bulk.
Developer ToolsMarkdown Editor & Preview
Write Markdown with a live side-by-side HTML preview.
Developer ToolsCSS Gradient Generator
Design linear and radial gradients visually and copy the CSS.
Developer Tools