Regex Tester
Test regular expressions online. Find matches, highlight results, extract groups and replace text instantly.
Regex Flags
Quick Patterns
Test String
Enter the text you want to test against your regular expression.
Match Results
Match Details & Capture Groups
| # | Match | Position | Capture Groups |
|---|---|---|---|
| 1 | support@example.com | 34 | None |
| 2 | sales@toolboxai.com | 57 | None |
| 3 | pankaj123@gmail.com | 115 | None |
Common Regular Expression Characters
| Pattern | Meaning | Example |
|---|---|---|
| \\d | Any digit | 0–9 |
| \\w | Word character | a, A, 1, _ |
| \\s | Whitespace | Space, tab, newline |
| . | Any character except line terminators (without s flag) | a, 1, @ |
| ^ | Start of input or line with m flag | Beginning |
| $ | End of input or line with m flag | Ending |
| [abc] | Any listed character | a, b or c |
| + | One or more repetitions | a+ |
| * | Zero or more repetitions | a* |
| ? | Zero or one occurrence | colou?r |
What is a Regex Tester?
A Regex Tester is a developer tool used to create, test and debug regular expressions. Regular expressions help identify patterns in text, such as email addresses, phone numbers, URLs, dates and other structured information.
Regex Tester Features
- Test JavaScript regular expressions instantly.
- Highlight matching text.
- Use global, case-insensitive and multiline flags.
- View match positions and capture groups.
- Replace matching text and preview the result.
- Copy or download matched results.
- Use ready-made patterns for common tasks.
Is this Regex Tester safe?
All matching and replacement operations run locally in your browser. Your test text is not uploaded to our backend. Avoid testing untrusted or extremely complex patterns on very large text because some regular expressions can take a long time to execute.
