Regex Tester
Iterate on regular expressions with real-time matches, explanations and sample data. Type a pattern, see what it matches instantly, and refine it without leaving your browser.
How to use
- Enter your regular expression and any flags.
- Paste the sample text you want to test against.
- See matches highlighted in real time as you type.
- Refine the pattern until it matches exactly what you need.
Frequently asked questions
- Does it show matches as I type?
- Yes. Matches update in real time so you can refine the pattern quickly.
- Which regex flavor does it use?
- It uses JavaScript regular expressions as run by your browser.
- Can I test capturing groups?
- Yes. Groups and flags are supported so you can build complex patterns.