Code Tool
Regex Tester
Test regular expressions, inspect matches, and review capture groups in your browser.
Test a regular expression
Enter a pattern, choose flags and test it against sample text with live results.
StatusRegex ready
Edit the pattern or test text to update matches.
Your regex and test text are processed in your browser and are not uploaded.
Match preview
DevKitYard
hello@example.com
support@devkityard.com
https://devkityard.com
Order ID: DKY-2048
Matches2
Flagsgi
Text characters93
hello@example.comIndex 11
support@devkityard.comIndex 29
How to Use Regex Tester
- Enter a regular expression pattern.
- Choose any flags you need, such as global or case-insensitive matching.
- Paste sample text into the test area.
- Review matches, indexes and any regex errors.
FAQ
Is my sample text uploaded?
No. Regex testing runs in your browser against the text you enter locally.
Can I use regex flags?
Yes. Enter JavaScript regex flags such as g, i or m depending on how you want matches to behave.
Does the tool show match positions?
Yes. Matches include their index so you can see where each result appears in the sample text.
Which regex engine is used?
The tester uses JavaScript regular expressions in the browser.