Regex Tester
Test regular expressions in real-time with syntax highlighting and match extraction.
Local processing
This tool processes your input in your browser.
[RE] Regular Expression
JavaScript regular expression without enclosing slashes. Flags are selected below.
FLAGS
EXAMPLES
[IN] Test String
Matches update as you type. Disable Global to return only the first match.
[OUT] Highlighted
3 MatchesUnderlined text marks matches. │ marks a zero-length match.
Contact us at support@example.com or sales@company.net for more info.
Also test invalid-email@...
Hello admin@localhost.dev
[OUT] Capture Groups
Match 1Index: 14
support@example.com
- Group 1:
- support@example.com
Match 2Index: 37
sales@company.net
- Group 1:
- sales@company.net
Match 3Index: 105
admin@localhost.dev
- Group 1:
- admin@localhost.dev