Regex Tester
Test and debug regular expressions in real time. See all matches highlighted, view capture groups, and explore common patterns.
Common Patterns
How to Use Regex Tester
- 1
Enter your regular expression pattern between the / slashes at the top.
- 2
Toggle flags: g (find all matches), i (ignore case), m (multiline), s (dot matches newline).
- 3
Paste or type your test string in the text area - matches highlight instantly.
- 4
The match list shows every match with its position and any capture groups.
- 5
Click a common pattern button to load a pre-built expression.
Frequently Asked Questions
How do I test a regex online?
Enter your regex pattern in the top field and paste your test string below. Matches are highlighted in real time with their positions and any capture groups shown.
What regex flags does the tester support?
The tester supports g (global - find all matches), i (case-insensitive), m (multiline - ^ and $ match line boundaries), and s (dotall - dot matches newlines).
What are the common regex patterns included?
The tool includes pre-built patterns for Email, URL, US Phone, IP Address, Date (YYYY-MM-DD), Hex Color, HTML Tags, Digits, Words, and Whitespace.