Test regular expressions live.
Test JavaScript regular expressions with live highlighting, capture groups, named groups and replace preview. Private and instant.
Pattern
//gi
0 matches
Hatchwell tools never touch your files, which keeps things private.
Runs on your device in a background thread. Patterns that take over 1.5s are stopped automatically, so the page never freezes.
Processed on your device · nothing is uploaded
How it works
- 1Enter a pattern and toggle flags.
- 2Paste text to test against.
- 3Inspect highlighted matches, groups and replacements.
Questions
Which regex flavor is this?+
JavaScript (ECMAScript), the same engine your browser and Node.js use.
How do I use replacements?+
Use $1 for a group, $& for the whole match and $<name> for named groups.
Why does a pattern freeze the page?+
Patterns with nested quantifiers can backtrack catastrophically. Simplify the pattern or shorten the text.