Regex Tester
Use this regular expression tester to check a JavaScript pattern against sample text. Matches are highlighted as you type, and capture groups help you understand exactly what the pattern returns.
How to use this tool
- Enter a regular expression pattern and choose the flags you need, such as global or ignore case.
- Paste the text you want to test into the test string panel.
- Review highlighted matches and the capture group table, then copy the matches when the result is correct.
Tips
- Start with the smallest pattern that can match your input, then add groups or quantifiers one at a time.
- Use the global flag when you need every match rather than only the first match.
Frequently asked questions
Which regular expression syntax does this tester use?
It uses the JavaScript RegExp engine, including the supported JavaScript flags shown beside the pattern field.
Why do I only see one match?
A pattern without the global or sticky flag returns only the first match. Enable g when you want to scan the full test string.