Home / Regex Tester
Regex Tester
Type a pattern, choose flags, paste your test text, and see matches, groups & replacements instantly. Everything runs locally in your browser.
Pattern & Flags
Test Text
Replace
Cheatsheet & quick hints
Anchors:
^ start, $ end, \b word, \B non-word. •
Quantifiers: * + ? {m,n} ? (lazy) •
Character classes: ., \d \w \s, [^...] •
Groups: (...) capture, (?:...) non-capture, (?<name>...) named •
Lookarounds: (?=) (?!) (?<=) (?<!) •
Flags: g global, i ignore case, m multiline, s dotAll, u unicode, y sticky, d indices.
Results
Ready.
Matches & Groups
| # | Match | Index | Length | Groups |
|---|
Pattern Breakdown
—
Share & persistence
Your state auto-saves to localStorage. “Share” writes everything to the URL (hash). Opening such a URL restores the pattern, flags, text & replacement — no server involved.