Regex Tester

Test regular expressions with live match highlighting and group extraction.

Examples

InputResult
Pattern: \d{3}-\d{4} Test: Call 555-1234Match: 555-1234
Pattern: (\w+)@(\w+\.\w+) Test: [email protected]Group 1: dev, Group 2: test.com
Pattern: ^https?:// Flags: gi Test: HTTP://example.comMatch: HTTP://
Pattern: (?<=@)\w+ Test: user@domainMatch: domain

About this tool

Type a regular expression and test string to see matches highlighted in real time. Capture groups are extracted and shown individually, which is especially helpful when building patterns with multiple groups for data extraction.

The tester supports all JavaScript regex flags and updates results as you type. This is faster than the usual cycle of editing a regex in code, running it, and checking the output in a console.

Frequently asked questions

Which regex flavor does this tool use?

It uses JavaScript regular expressions, which is the RegExp engine built into your browser. This supports features like lookahead, lookbehind, named groups, and Unicode property escapes in modern browsers.

How do I see capture groups?

Capture groups are automatically extracted and displayed separately from the full match. Each group is numbered starting from 1, and named groups show their name as well.

Can I test with the global and multiline flags?

Yes. You can toggle flags like g, i, m, s, and u. The match results update in real time as you change flags.

EchoBeaver — Free browser tools