🧪 RegexLab

Live highlight · match groups · replace preview · zero uploads

Test regexes on your own text

Type a pattern, tick flags, paste sample text — matches highlight as you type. The engine is your browser's own JavaScript regex; nothing is sent anywhere.

The lab

Pattern + flags, live highlighting, match list with groups, replace preview.

Pattern
Test text & replace
Results

Highlighted text
—
Matches & groups
Replace preview
Pro Pro
Match history and the full cheat sheet are part of RegexLab Pro

FAQ

Is RegexLab free?

Yes — unlimited live testing. Pro ($3.99 once) adds match history for your recent patterns and the built-in cheat sheet.

Which regex flavor is this?

JavaScript's built-in ECMAScript engine, whatever your browser ships. Named groups and lookbehind work in all modern browsers, but PCRE, RE2 or Python flavors behave slightly differently at the edges.

Why does my pattern stop or freeze?

Zero-length matches are stepped forward automatically so the loop cannot spin forever, and input is capped around 1 MB. A genuinely catastrophic-backtracking pattern can still tie up the tab — simplify the pattern.

Part of PZTools·SQLFormat·TextDiff·CaseSmith

Support RegexLab

RegexLab runs entirely in your browser — no accounts, no servers, no tracking. A small contribution keeps it that way.

RegexLab Pro · $3.99 lifetime

Payments are processed by PayPal. Nothing about you or your data is stored or sent anywhere by this site.