Useful Hacks

Regex Tester

Test regular expressions against sample text with live matches.

Processed locally in your browser. Nothing you enter is uploaded or stored.

Overview

Test a regular expression against sample text and see every match, capture group and flag behavior highlighted live.

How to use it

  1. 1Enter a pattern and choose flags (g, i, m, s).
  2. 2Paste test text.
  3. 3Matches are highlighted inline; capture groups are listed below.

Tips

  • A pattern that runs for a long time on certain input may indicate catastrophic backtracking (ReDoS) — this tool applies a execution time guard and will stop runaway patterns.

Frequently asked questions

Related tools

All developer tools

Search tools

Search for any tool by name, category or keyword