Regular Expression Tester
Test and debug regex patterns with live matching and group visualization
Regex Pattern & Test Data
Enter your regular expression pattern and test string
//
Common Patterns
Load popular regex patterns to get started
Regex Quick Reference
Common Patterns
.
- Any character*
- 0 or more+
- 1 or more?
- 0 or 1^
- Start of string$
- End of stringCharacter Classes
\d
- Digit [0-9]\w
- Word [A-Za-z0-9_]\s
- Whitespace[abc]
- Any of a, b, c[a-z]
- Range a to z[^abc]
- Not a, b, or cTip: Use parentheses ()
to create capture groups, and (?:)
for non-capturing groups. Named groups can be created with (?<name>pattern)
.