← Back to Tools
Regex Tester
Category:
Developer
Complexity:
Medium
Usage:
High
Test and debug regular expressions with live matching
Pattern
e.g., /pattern/flags
Flags
Test String
0
characters
Replace (Optional)
Matches
Found:
0
Matches will appear here
Highlighted Text
Common Patterns
About Regular Expressions
Flags:
- g - Global: matches all occurrences
- i - Case Insensitive: ignores case
- m - Multiline: ^ and $ match line boundaries
- s - Dot All: . matches newlines
Capture Groups:
- (...) - Capture group ($1, $2, etc.)
- (?:...) - Non-capturing group
Character Classes:
- \\d - Digit (0-9)
- \\w - Word character (a-z, A-Z, 0-9, _)
- \\s - Whitespace character
- [abc] - Any character in set
- [a-z] - Character range
Quantifiers:
- * - 0 or more
- + - 1 or more
- ? - 0 or 1
- {n,m} - Between n and m