WEB & API / LIVE

Regex Tester
patterns, made visible.

Test a regular expression against sample text and inspect each match and capture group.

FREE TO USE / NO ADS / NO LOGIN REQUIRED

Test regex matches and capture groups online

Try a regular expression against your sample text before using it in code. Inspect matches and captured groups while changing the pattern or flags.

Enter a pattern, flags and sample text, then select Test expression. The results follow the browser's JavaScript regular expression engine; patterns for other languages may behave differently.

Popular ways to use Regex Tester

  • Try a pattern against sample text before using it in code.
  • Inspect which parts of a match each capture group returns.
How processing and privacy work

Processing runs in your browser. The page may download scripts, fonts or processing engines to run the tool; these downloads are separate from uploading your input files.