Regex Tester

Test regular expressions (regex) easily and show matching lines only.

Enter Regex Pattern & Test String:

Matching Lines:

No matching items found

How Does This Regex Tester Work?

Enter your regular expression and multiline text. This tool will evaluate each line of your input separately and show only those lines that match the regex pattern.

Why Use This Multiline Regex Tester?

  • Test multiline inputs with complex regular expressions.
  • Only matching lines will be displayed for easy review.
  • Supports all standard JavaScript regex features.
  • Instant copy functionality for efficient workflows.

Example Patterns:

  • ^\d{4}-\d{2}-\d{2}$ → Lines matching dates like 2025-06-24
  • ^\w+\.(gif|png|jpg)$ → Lines ending with image file names
  • ^ERROR: → Lines starting with the word "ERROR:"

Easily filter and extract matching lines from large text datasets with this free online Regex Tester.

More Tools