Regex Tester
Test JavaScript regular expressions against text and replace matches in your browser.
Test JavaScript regular expressions against text and replace matches in your browser.
- AbsolTools makes the tools you use often more accurate and convenient.
- Every tool is free with no sign-up. Work happens in your browser, and inputs and results are not stored on or sent to a server.
- Bookmark this site so you can come straight back next time.
Ready
How to use the Regex Tester
Enter a JavaScript regular expression, choose the flags you need, and paste test text. Matches and capture groups update after you stop typing. Add a replacement template only when you want to create replacement output.
Frequently asked questions
Which regular-expression engine is used?
The tester uses the JavaScript RegExp engine built into your browser.
What does the g flag change?
With g selected, the tester lists successive matches. Without it, only the first match is shown. Replace all still replaces every eligible match.
Is my pattern or text uploaded?
No. Matching and replacement happen only in this browser tab and are not stored by the tool.