Regex Tester
Test and debug regular expressions in real time. No sign-up required.
How to Use
1. Enter a regex pattern in the field below or click a sample pattern button.
2. Toggle flags (g, i, m, s, u, y) to change matching behavior.
3. Type or paste test text in the Test String area.
4. View matches in the right panel with indices and capture groups.
5. Use Replace to transform text with regex, or Extract to find specific patterns.
6. Copy matches silently with the Copy All button.
Regular Expression
Samples:
Test String
Replace
Extract
Matches
0 matches found
Enter a pattern and test string above.
Matches: 0
Groups: 0
Time: 0ms
Chars: 0
Lines: 0
Common Patterns
Quick Reference
.Any char\dDigit\DNon-digit\wWord char\WNon-word\sWhitespace\SNon-whitespace\bWord boundary\BNon-boundary^Start$End*0++1+?0-1{n}Exactly n{n,m}Range[abc]Set[^abc]Not set(abc)Group(?:abc)Non-group|OR(?=)Lookahead(?!)Negative lookahead