Regex Tester

Tests a regular expression against sample text and shows all matches.

Lilu Baba's Regex Tester runs your JavaScript-flavor regular expression against test text and shows every match, using your browser's native regex engine.

How to use this tool

  1. Enter your regular expression pattern and any flags.
  2. Paste your test string.
  3. All matches update instantly.
Match Count —

Regex Tester — frequently asked questions

JavaScript's native regular expression engine — syntax may differ slightly from PCRE, Python or other regex flavors.

An error message describing the syntax problem is shown instead of results.