Regex Tester

Test a JavaScript regular expression against text and inspect every match.

When to use the Regex Tester

Use it to build and check a regular expression against real sample text before putting it in code, a log filter or a config file.

Examples

  • Match IPv4 addresses in a log line.
  • Extract order numbers like ORD-12345 from text.

Common mistakes

  • Greedy .* matching far more than intended.
  • Forgetting to escape dots and other special characters.