Regex Tester
Build and debug regular expressions with instant feedback. Every match is highlighted, capture groups are listed, and you can preview a replacement before using the pattern in code.
Regex Tester tool
Live highlighting, capture groups, flags and replace preview.
Handled on your device, so your files stay private.
Regex Tester at a glance
Write a regular expression and see every match highlighted live, with capture groups, flags, replace preview and a cheat sheet. Free and private in your browser.
- Cost
- Free to use, with no account, watermark or usage cap.
- Privacy
- Processing happens on your device; nothing is sent to our servers.
- Devices
- Up-to-date Chrome, Edge, Firefox or Safari on computers, Android phones and iPhones.
- Last updated
Testing a regular expression, step by step
- Type your pattern between the slashes, or start from a sample such as Email or Date.
- Turn flags on or off: global, ignore case, multiline, dot-all and unicode.
- Paste test text and watch matches light up; groups appear in the table.
- Optionally type a replacement to preview the result.
JavaScript regex, exactly
Patterns run with the regular expression engine of your browser, so what works here works the same in JavaScript, TypeScript and Node.js, including named groups, lookbehind and unicode properties.
Your data stays private
Many online text tools send what you paste to a server. These run entirely in your browser, so drafts, code, passwords and customer data never leave your device, and nothing is saved.
Frequently asked questions
Why does my pattern match only once?
Turn on the g (global) flag to find every match instead of only the first.
Is this the same as regex in Python or PHP?
The basics are the same, but some features differ, such as lookbehind support and flag names. Test in the target language for edge cases.
Is my text uploaded?
No. Everything runs in your browser on your own device. Nothing you type is sent, logged or saved.
Is it free?
Yes. No account, no limits and no watermark.