Skip to content

Developer

Regex Live Tester & Group Matcher

Test regular expressions live against sample text. View highlighted matches in real time, extract capture group arrays, toggle regex flags (Global, Case-Insensitive, Multiline, DotAll), and inspect match indexes.

calculator

Calculator

Regular Expression Live Tester

Sample Patterns:

Matched Results (2)

/([a-zA-Z0-9._%+-]+)@([a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/g
Match #1Index: 21
support@topsearches.online
Capture Groups:
Group 1: support
Group 2: topsearches.online
Match #2Index: 51
press@media-hub.org
Capture Groups:
Group 1: press
Group 2: media-hub.org

Core regex flags explained

/g (global match: finds all matches rather than stopping after the first), /i (case-insensitive), /m (multiline: ^ and $ match start/end of line), /s (dotAll: . matches newlines).

Common regex pattern cheat sheet

Email: ^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$; URL: https?:\/\/[\w\-\.]+\.[a-z]{2,}; Phone: ^\+?[1-9]\d{1,14}$; Numbers only: ^\d+$.

Getting a trustworthy result

Regex Live Tester & Group Matcher runs entirely in your browser from the numbers you enter. Check the methodology notes above, then compare with a related calculator or a short guide if you want a second pass before you decide.

What to do next

If prices or rates sparked this visit, glance at Markets. If you want a walkthrough, open a related guide. Or switch to another calculator in the same category to finish the task in one sitting.

FAQ

How do capture groups work in regex?

Parentheses (like `(\d{4})-(\d{2})`) capture matched sub-strings into indexed groups for easy extraction.

Why is my regex returning only one match?

Ensure the Global (/g) flag is active so the regex engine continues searching through the entire input string.

Is the Regex Live Tester & Group Matcher free?

Yes. It runs in your browser with no account required.

Where should I go after using this tool?

Try related tools in the sidebar, Markets for live-style price snapshots, or Blog guides that link back into calculators.

Related