RegEx Tester
Test and debug JavaScript regular expressions in real-time.
What is the RegEx Tester used for?
Use it to test regular expressions against sample text with live match highlighting.
When to use it
- Writing form validation
- Search-and-replace patterns
- Log parsing
How to use the RegEx Tester
- Type or paste your text into the input box.
- Adjust the options, if any, to fine-tune the result.
- See the output update instantly below.
- Copy the result with one click or download it as a file.
About this tool
The RegEx Tester turns your input into the result you need in real time. Paste or type in the box above and the output appears below immediately; use the options for pattern, flags and replace with (optional) to fine-tune it.
When you are happy with the result, copy it with one click or download it as a text file. The example text is there so you can see what the tool does before using your own content.
Because the regex tester runs entirely in your browser, it is fast even with large inputs and keeps private content – code, documents, passwords or personal notes – on your device.
Frequently asked questions
Can I use the result commercially?
Yes. Anything you create with the regex tester is yours to use however you like.
Is the regex tester free?
Yes. The regex tester on UnlimitedPocket is completely free, with no sign-up, no usage limits and no watermarks.
Is my data uploaded anywhere?
No. Everything is calculated in your browser on your own device. Nothing you type or open is sent to our servers.
Report an issue
Something wrong with the RegEx Tester? Tell us and we’ll fix it.