Write your pattern
Type your regular expression and tick the flags you need.
Test regular expressions with live matches and groupsRegular expressions are powerful and famously unforgiving: one wrong quantifier and a pattern that looks right matches nothing. This tester gives you the feedback loop you need: type a pattern, paste test text, and every match highlights live.
Test regular expressions with live matches and groups
Type your regular expression and tick the flags you need.
Paste the test text and watch matches highlight live.
Inspect each match and its capture groups, or add a replacement to preview the result.
Regular expressions are powerful and famously unforgiving: one wrong quantifier and a pattern that looks right matches nothing, or matches half the document. The Regex Tester gives you the feedback loop you need, with every match highlighted in place, a numbered list of matches with exact indexes, and a breakdown of every capture group. It also includes a replacement preview, so find-and-replace patterns with $1 style group references can be verified before they run against real data. Everything runs locally in your browser with the standard JavaScript regex engine.
Where patterns get debugged properly.
Every match highlights live in place, with a numbered list showing the exact index and text of each hit.
Each match breaks down its capture groups in order, so you confirm the pattern extracts what you think it does.
A replacement field with $1 style references previews results before they run against real data.
Global, case-insensitive, multiline, dotAll, unicode and sticky flags are first-class controls here, not an afterthought.
Two warnings from experience.
Patterns with nested quantifiers can freeze the tab on long inputs; keep test strings modest.
A pattern that matches nothing usually fails for mundane reasons: an unescaped dot, a missing global flag, or misfit anchors.
It runs the standard JavaScript regex engine, the same one in every browser and Node.js.
Everything runs in your browser, so your patterns and test data never leave your device. No signup needed.

Discover the technology stack behind any website in seconds. Our free Technology Stack Detector uncovers CMS, frameworks, hosting, and analytics instantly.
Read article →
Free security headers checker. Instantly scan HSTS, CSP, X-Frame-Options and more on any site, get an A to F grade and clear steps to fix every website gap.
Read article →