Regex Tester
Write a pattern, paste your test text, and see every match highlighted live - with a count and a full match list. Uses the JavaScript regex engine.
//
2 matches
Contact ada@example.com or bob@dev.io for details.
1. ada@example.com
2. bob@dev.io
How to use
- Type your regular expression between the slashes.
- Add flags (g, i, m, s, u, y) if needed.
- Paste the text to test against.
- Matches highlight instantly in the text and list below.
Examples
Find emails
Input: Pattern \b\w+@\w+\.\w+\b against "mail ada@example.com"
Output: 1 match: ada@example.com
Frequently asked questions
Which regex flavor is used?
JavaScript (the RegExp your browser runs). Syntax differs slightly from PCRE or Python re.
What flags are supported?
g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode) and y (sticky).