Regex
Tester

Test regular expressions with real-time match highlighting, capture groups, and plain-English explanations.

PATTERN & FLAGS

Flags
Active:/pattern/g

TEST STRING

HIGHLIGHTED MATCHES

Enter a test string to see match highlights.

MATCHES

0 found

No matches found for the current pattern and flags.

REGEX EXPLANATION

Enter a regex pattern to see a plain-English explanation.

COMMON PATTERNS

Click a preset to load a ready-to-test pattern and flag combination.

Learn more

Why is regex so powerful yet so hard to read? Let’s look under the hood.

Was this useful?

Frequently Asked Questions

The tool uses JavaScript RegExp, including capture groups, named groups, character classes, lookaheads, quantifiers, and standard escapes.

Yes. You can toggle g, i, m, s, u, and y flags and see match results update in real time.

It uses native JavaScript regular expressions, so behavior matches what you get in modern browsers and Node.js.