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.
Input Lines
7 lines
2 matches found
How Line Filtering Works
Extract or isolate data rows in three straightforward steps.
Paste or Enter Lines
Paste server logs, CSV entries, email records, or code into the editor, or click “Sample” to load example server logs.
Set Filter Criteria
Provide your target word or regex pattern, choose whether to keep or remove matching lines, and pick the matching mode.
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.
Key features
Filter text lists and log files using flexible matching rules.
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.
Local Browser Processing
Your input is processed directly in your browser and is not uploaded to Pinatool's servers.
Frequently Asked Questions
Common questions about line filtering, regex syntax, and filtering behavior.
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 use regular expressions to filter lines?
Yes. Select the "Regular Expression" mode button. You can enter any standard JavaScript regex pattern (for example, "^\d{4}-\d{2}-\d{2}" to match lines starting with an ISO date, or "\[ERROR\]|\[FATAL\]" for multiple keywords).
Can I view the lines that were excluded?
Yes. Above the output panel, switch between the "Kept Lines" and "Excluded Lines" tabs to inspect or copy 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 line to match your query completely.
Are my logs or text uploaded to an external server?
No. Your input is processed directly in your browser and is not uploaded to Pinatool’s servers.
Explore More Text Tools
Free browser-based tools for sorting, cleaning, and formatting lists.