Regex Tester

Test regular expressions and view match results.

Match Results

Invalid regular expression

About this tool

The Regex Tester evaluates a regular expression against sample text and highlights every match in real time. Flags such as case-insensitive and multiline are toggleable so you can iterate quickly.

Common use cases

  • Prototype a pattern before pasting it into a script or codebase.
  • Debug an expression that is not matching the strings you expected.
  • Learn regex by experimenting on safe sample text instead of production data.
  • Validate user-input rules such as email or phone formats before implementing them.