Regex Tester

Free

Test regular expressions against sample text with live highlighting of matches and capture groups. Supports JavaScript flags like g, i, and m.

Matches

0 found

No matches

Adjust your pattern or test string.

How to get the best results

  1. 1Type a pattern and any flags (g, i, m…).
  2. 2Paste the text to test against.
  3. 3Matches and groups highlight as you type.

Example

You give

Pattern: \b\d{4}-\d{2}-\d{2}\b Flags: g Text: Invoices dated 2026-09-30 and 2026-10-03 are due.

You get

2 matches: 2026-09-30 and 2026-10-03

Regex Tester FAQ

Common questions about using this tool on Toolartisan.

More utilities people use with Regex Tester.

All tools