Regex Tester
Test and debug your regular expressions
Pattern & Text
Enter your regex pattern and test text
Results
No matches found
No matches found. Try adjusting your pattern or test text.
How to Use
Getting Started
- Enter your regex pattern in the first field
- Select flags to modify behavior (g, i, m, s, d)
- Enter test text to match against
- Click "Test Pattern" to see matches
Flags Explained
- g - Global: find all matches
- i - Case-insensitive matching
- m - Multiline: ^ and $ match line boundaries
- s - Dot matches newlines
- d - Has indices (match start/end)
Tip: Use capture groups with parentheses (...) to extract parts of your matches. They will be displayed in the results. Learn more about Regex →