Regex Tester

Test regular expressions against any string instantly in your browser. See all matches, groups, and indices in real time without any server round-trips

CODE TEXT
/ /
Tip: enter a regex pattern and flags, then type in the test area to see matches highlighted in real time.

Runs 100% Locally in Your Browser

This tool processes your data entirely on your device. Nothing is uploaded, stored, or sent to any server.

No Uploads Privacy First Secure by Default

Frequently Asked Questions

What is a regular expression (regex)?
A regular expression is a pattern of characters used to search, match, and manipulate text according to defined rules.
How to test a regex pattern against a string online?
Enter your pattern in the regex field and your test string in the input — all matches are highlighted in real time.
What is the difference between regex and wildcard patterns?
Wildcards (* and ?) are simple shell-style patterns; regex is a full formal language that supports character classes, quantifiers, groups, and lookaheads.
What are regex capture groups used for?
Groups — defined with ( ) — let you isolate and extract specific parts of a match, such as a date's year, month, and day separately.
What do regex flags like g, i, and m do?
g finds all matches (not just the first); i makes the match case-insensitive; m makes ^ and $ match line boundaries instead of the whole string.
What is the difference between greedy and lazy regex matching?
Greedy quantifiers (like *) match as much as possible; lazy quantifiers (like *?) match as little as possible — add ? after a quantifier to make it lazy.
Is my regex pattern or test text sent to a server?
No. All matching runs in your browser using the built-in JavaScript RegExp engine — nothing is transmitted.