Initialising Workbench...
Build, test, and debug regular expressions with live match highlighting, capture-group inspection, and search-and-replace — all client-side.
Highlighted matches
Matches
Enter a regular expression to start matching.
.\d\D\w\W\s\S[abc][^abc][a-z]^$\b\B*+?{n}{n,}{n,m}*?(abc)(?:abc)(?<name>abc)a|b(?=abc)(?!abc)(?<=abc)(?<!abc)Every tool runs entirely in your browser. Nothing you type is uploaded, stored, or logged on our servers.
The Regex Tester is an online playground for building, testing, and debugging regular expressions right in your browser. Type a pattern, toggle the g, i, m, s, u, and y flags, and watch every match light up in your test string in real time. Each match card breaks down the full match plus its numbered and named capture groups, so you can see exactly what your expression is capturing.
Switch to the Replace tab to preview search-and-replace results using replacement templates like $1, $<name>, and $&. Load one of the built-in common patterns — email, URL, IPv4, hex color, dates, and more — as a starting point, or keep the quick cheatsheet handy while you work. The tool uses your browser's native JavaScript (ECMAScript) regex engine, so your patterns and test data never leave your device.
It uses the JavaScript (ECMAScript) regex engine built into your browser, including support for named capture groups, lookbehind, and the u (unicode) and s (dotAll) flags.
g finds all matches instead of just the first, i makes matching case-insensitive, m lets ^ and $ match at line breaks, s lets . match newlines, u enables full Unicode mode, and y (sticky) matches only from the last position.
Each match card lists every numbered group ($1, $2, …) and any named groups you defined with (?<name>…), so you can confirm exactly what your pattern captured.
Switch to the Replace tab and enter a replacement template. Use $1 or $<name> to insert captured groups and $& for the entire match. Enable the g flag to replace every occurrence.
No. Everything runs entirely in your browser using the native regex engine — your patterns and test strings never leave your device.
Common causes are a missing g flag (only the first match shows), a case mismatch (add the i flag), or unescaped special characters like . + ( ) that need a backslash to match literally.