Developer
Regex Tester
Test a JavaScript regular expression against your text and see every match, group and replacement.
Loading the tool…
Runs in this browser. Nothing is uploaded.
How to use Regex Tester
- Paste or type into the box.
- Change the settings beside your file if you need to.
- The result updates as you type. Copy it when you are done.
Questions
- Which regex flavor is this?
- JavaScript's, as your browser runs it. Most of it matches PCRE and Python, but lookbehind, named groups and \p{…} classes follow the JavaScript rules.
- Why are all matches listed when All matches is off?
- The list always shows every match so you can see them. The replacement follows your flags, so with All matches off only the first match is replaced.
- What happens with a slow pattern?
- It runs in the background and is stopped after two seconds, so the page never freezes.
- Is Regex Tester free?
- Yes. There is no account, no trial and no limit on how often you use it.
- Is what I type sent anywhere?
- No. Everything is worked out in your browser; nothing you enter leaves this page.
- Does it work offline?
- Once the page has loaded, most tools keep working without a connection.
More developer tools
Diff CheckerCompare two texts for changesUUID GeneratorMake random UUIDs in bulkBase64 EncoderEncode text or files as Base64Timestamp ConverterTurn Unix time into datesColor PickerPick a color, get every formatBase64 DecoderTurn Base64 back into textHash GeneratorGet MD5 and SHA hashesText ⇄ BinaryTurn text into binary and back