โ Back to Tooly
๐งช
Regex Tester
Test regular expressions instantly with live match highlighting. Free online regex tester with flags, explanation, and match details.
What Is a Regex Tester?
A regex tester lets you build and debug regular expressions against real text with instant feedback. Regular expressions (regex) are patterns used to search, match, and extract text โ from validating emails to parsing logs and scraping data.
This free regex tool shows you the match count, the position of every match, and supports the standard flags: g (global), i (case-insensitive), and m (multiline).
Common Regex Patterns
Email: \b[\w.-]+@[\w-]+\.[\w.]+\b ยท Phone: \+?[0-9\s-]{10,15} ยท URLs: https?:\/\/[\w.-]+ ยท Dates: \d{4}-\d{2}-\d{2}
Start with simple patterns and build up. The tester updates live, so you can iterate until the pattern matches exactly what you need.
How to Use
- Type your regular expression pattern
- Enter test text to match against
- Toggle flags (g, i, m) as needed
- Read the match count and positions โ the pattern updates live
Features
โก Live TestingMatches and counts update in real time as you type.
๐ฉ Flags SupportGlobal, case-insensitive, and multiline flags built in.
๐ Match DetailsSee every match with its position in the text.
๐ 100% FreeUnlimited regex testing. No signup required.
Frequently Asked Questions
How do I test a regex pattern?
Enter your pattern in the first box and the text to search in the second. Matches are counted and shown instantly. Use the g flag to find all matches, not just the first.
What do the regex flags do?
g finds all matches instead of stopping at the first, i makes matching case-insensitive, and m makes ^ and $ match at line boundaries.
What is the regex for an email address?
A practical pattern: \b[\w.-]+@[\w-]+\.[\w.]+\b. It matches most real-world email formats without being overly strict.
Is this regex tester free?
Yes โ completely free and unlimited, like all Tooly tools.