Pinatool

Filter Lines

Filter text lists and log files using text matching or regular expressions. Keep matching lines or remove them to extract the information you need.

Action
Matching Mode

Input Lines

7 lines

2 matches found

How It Works

1

Paste or Enter Lines

Paste server logs, CSV entries, email records, or code into the editor, or click "Sample" to load example server logs.

2

Set Filter Criteria

Provide your target word or regex pattern, choose whether to keep or remove matching lines, and pick the matching mode.

3

Inspect & Export

Review the kept or excluded line lists in real time, then copy the filtered output to your clipboard or download it as a text file.

Filter Lines Key Features

Flexible Match Modes

Filter by substring contains, prefix starts-with, suffix ends-with, exact string comparison, or regular expressions.

Dual Dataset Inspection

Easily toggle between kept and excluded line lists to verify that only the intended data rows were captured or removed.

Blank Line Cleanup & Whitespace Trimming

Strip empty lines from the output and trim leading or trailing spaces before matching so indented logs and messy lists filter accurately.

Frequently Asked Questions

How do I remove lines that contain a specific word?

Set the Action toggle to "Remove Matching". Any line containing your specified text or pattern will be filtered out, leaving only the remaining lines.

Can I view the lines that were excluded?

Yes. Above the output panel, switch between the "Kept Lines" and "Excluded Lines" tabs to inspect, copy, or download either dataset independently.

What is the difference between Contains, Starts With, and Exact Match?

"Contains" matches anywhere in the line. "Starts With" requires the line to begin with the query. "Exact Match" requires the entire line to match your query.

How can I filter lines that match any of multiple keywords at once?

Switch the Matching Mode to "Regular Expression" and separate your keywords with a pipe character, such as ERROR|WARN|CRITICAL. If your keywords include brackets or dots, escape them with a backslash (for example, \[ERROR\]|\[WARN\]).

How do Match Case, Trim Before Matching, and Remove Blank Lines work?

"Match Case" enforces exact uppercase/lowercase matching, "Trim Before Matching" ignores leading and trailing whitespace while testing each line without altering your original output, and "Remove Blank Lines" automatically excludes empty or whitespace-only rows.