Interactive regular expression learning and testing tool.
regex "pattern" "test string"
Input: regex "(\w+)@(\w+)\.(\w+)" "test@example.com"
Output:
✓ Match: test@example.com
Group 1: test
Group 2: example
Group 3: com
Explanation:
- (\w+) - capture word characters (test)
- @ - literal @
- (\w+) - capture word characters (example)
- \. - literal dot
- (\w+) - capture word characters (com)
| Pattern | Meaning | Example | |
|---|---|---|---|
| --------- | --------- | --------- | |
\d+ | One or more digits | 123 | |
\w+ | Word characters | hello_123 | |
[a-z] | Letter range | a, b, c | |
^start | Starts with | start... | |
end$ | Ends with | ...end | |
| `a | b` | OR | a or b |
a* | Zero or more a | '', a, aaa | |
a+ | One or more a | a, aaa |
regex explain - Explain pattern in plain Englishregex test - Test pattern against stringregex library - Show common patternsregex generate - Generate test cases (email, url, phone, etc.)共 1 个版本