Which regular-expression syntax is supported?
Use JavaScript regular-expression syntax, including numbered groups, named groups, backreferences, lookarounds, character classes, and the displayed flags when supported by your browser.
Build, highlight, replace, and inspect JavaScript regex matches with numbered and named capture groups.
Workspace
Expression
Replace preview
Use $& for the complete match, $1 for a numbered group, or $<name> for a named group. Turn off Global to replace only the first match.
Match details
Enter a pattern and sample text to inspect matches.
Use JavaScript regular-expression syntax, including numbered groups, named groups, backreferences, lookarounds, character classes, and the displayed flags when supported by your browser.
With Global enabled, every non-overlapping match is listed and replaced. Turn it off to inspect and replace only the first match.
Use $& for the complete match, $1 and $2 for numbered capture groups, and $<name> for a named capture group.
A test that exceeds the time limit is stopped and shows an error. The sample is limited to 100,000 characters, the expression to 2,000 characters, and displayed matches to 500.