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.
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.