Home Features All Tools Pricing Solutions Help Center Docs Blog About Log in Get Started — Free

Regex Tester

No signup needed Runs in your browser Free forever tier SSL secured

Test regular expressions instantly with live match highlighting. Free online regex tester with flags, explanation, and match details.

input type="text" id="rxPattern" value="\b\w+@\w+\.\w+\b" style="width:100%;font-family:monospace;text-align:center" oninput="testRegex()" aria-label="Rx pattern">
2 matches
Try Full Regex Tester →

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

  1. Type your regular expression pattern
  2. Enter test text to match against
  3. Toggle flags (g, i, m) as needed
  4. 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.

Related Tools

Try Full Regex Tester →