Developer tools

Regex tester

Test a regular expression live against your text, with matches highlighted and groups shown.

Regex Tester

How to use Regex tester

  1. Type your regular expression and your test text.
  2. Read the highlighted matches and the groups shown.
  3. Adjust the pattern until it matches exactly what you intend.

A good use for this

Testing a pattern for validation, searching, or extraction before putting it into code.

Limits

A pattern that matches your test text may still fail on real input — test edge cases (empty strings, unusual characters) before trusting it in production.