01 / Live
Highlights as you type
Matches are marked in the text, alternating colours so neighbours stand apart.
Free tool
Type a regular expression and some test text, and every match is highlighted as you type, with its position and each capture group, named groups included. Switch the flags on and off, preview a replace with $1 and $<name>, and start from common patterns like emails, URLs and dates. It runs your browser's JavaScript regex engine, so patterns for other languages can behave a little differently.
Start from
Tested in your browser. Your pattern and text are kept in this browser and never sent anywhere.
See what matches
01 / Live
Matches are marked in the text, alternating colours so neighbours stand apart.
02 / Groups
Each match lists its capture groups, and (?
03 / Replace
Use $1, $2, $& and $
Questions
JavaScript's, built into your browser. PCRE, Python and others are close but differ in places like lookbehind and named groups.
g finds every match, i ignores case, m makes ^ and $ work per line, s lets . match new lines, u turns on full Unicode, y matches only at the last position.
Check escaping: a backslash in the pattern box is just one backslash, unlike in many code strings.
Yes: (?
No.