Regex Tester
Test regular expressions against sample text and see every match.
Matches
2
hello@toolforge.devsales@example.com
About the Regex Tester
Write a pattern, set the flags and paste a test string. Matches are listed as you type, so you can refine a pattern quickly without leaving the page.
The engine is your browser's own JavaScript RegExp implementation, so behaviour matches exactly what your code will do at runtime.
How to use the Regex Tester
- Type the regular expression without the surrounding slashes.
- Set flags such as i for case-insensitive or m for multiline.
- Paste the text you want to test against.
- Review the match count and the highlighted matches.
Examples
| Input | Result |
|---|---|
| \d{4} on 'Year 2026' | 1 match: 2026 |
| \w+@\w+\.\w+ | Finds email addresses |
| ^\s+ with flag m | Leading whitespace on each line |
Frequently asked questions
Which regex dialect is used?
JavaScript (ECMAScript). Patterns written for PCRE, Python or Java may need small adjustments, particularly lookbehind and named groups.
Is the global flag required?
It is added automatically so that all matches are listed rather than just the first.
Is my data sent to a server?
No. This tool runs entirely in your browser using JavaScript. Nothing you enter is uploaded, logged or stored by AHRATOOLS.

