Enter your regular expression in the pattern field at the top of the left panel. The regex is validated in real-time — errors are shown immediately with clear messages.
Toggle regex flags using the flag buttons below the pattern: g (global), i (case-insensitive), m (multiline), s (dotall), u (unicode), v (unicode sets), d (indices), y (sticky).
Paste or type your test string in the text area below the flags. Matches are highlighted instantly with alternating colors.
View match results in the right panel: each match shows the full text, index, length, numbered capture groups, and named capture groups.
Switch between modes using the bottom bar: Test (match highlighting), Replace (substitution preview), Split (string splitting), Explain (regex breakdown tree), or Generate (code snippets in 9 languages).
Use the Cheat Sheet button for an inline regex syntax reference, or browse the Common Patterns library for 30+ battle-tested regex templates.
Copy results with ⌘⇧C, or share your regex and test string via a compressed URL.
Real-time match highlighting: all matches highlighted with alternating colors directly in the test string as you type.
Full capture group support: view numbered groups ($1, $2, ...) and named groups (?<name>...) for every match.
8 regex flags: toggle g, i, m, s, u, v, d, y with instant visual feedback and tooltip descriptions.
Replace mode: test string.replace() and string.replaceAll() with substitution tokens ($1, $&, $', $`, $<name>).
Split mode: test string.split(regex) and view the resulting array with element count.
Regex explainer: visual tree breakdown of your regex structure — groups, quantifiers, anchors, lookarounds, and character classes explained in plain English.
Code generation: generate ready-to-use regex code in JavaScript, TypeScript, Python, Go, Java, C#, PHP, Ruby, and Rust.
Match statistics: total matches, unique matches, average match length, coverage percentage, shortest and longest match.
Inline regex cheat sheet: searchable reference for all regex syntax — character classes, quantifiers, anchors, groups, lookarounds, Unicode properties, and escapes.
Common patterns library: 30+ categorized, battle-tested regex templates for emails, URLs, IPs, dates, passwords, HTML tags, and more.
Pattern validation: real-time syntax checking with clear error messages for invalid regex.
Catastrophic backtracking protection: patterns that would cause excessive execution time are safely terminated.
Shareable URLs: gzip-compresses your pattern, flags, and test string into a URL for team sharing.
Works entirely in your browser — no regex patterns or test data are ever sent to any server. Your data stays completely private.
Keyboard shortcuts for power users: ⌘↵ to run, ⌘⇧R for replace, ⌘⇧E for explain, ⌘⇧G for generate, ⌘⇧H for cheat sheet.