We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Was this tool helpful to use?
Your feedback helps us make it better
Filter text content based on keywords and regular expressions. Supports include/exclude modes to quickly extract the information you need.
Enter text to see filtered output
Overview
Understand what the tool solves, how it works, and the boundaries of its data.
Paste multiline text, enter one keyword, and choose whether to keep lines containing it or remove those lines. The match is a substring anywhere in a line: a keyword found inside a longer word also counts. Matching is not a regular-expression search and there is no option for multiple terms or match conditions.
With case matching off, the keyword and each line are compared without regard to letter case. Turn it on when “Error” and “error” should count as different text. The trim-lines option trims each line before matching and keeps the trimmed version in the output; when off, leading and trailing spaces remain and can affect whether a keyword is found. Line breaks separate records, and matching lines retain their original order.
If the keyword box is empty, the tool does not select or remove lines: it returns the input (or trimmed lines when trimming is enabled). Blank lines are not automatically deleted, and repeated matching lines are not deduplicated.
Guide
Follow the workflow and verify inputs and outputs with practical examples.
Paste or type text with one record or passage per line. The input area can also load its built-in example.
Enter a literal keyword. Leave it empty only when you want the text unchanged, optionally with line trimming.
Choose Include to keep lines containing the keyword or Exclude to keep lines that do not contain it. Set case matching and trimming before reviewing results.
Check the read-only output. Copy it when you are satisfied, or reset to clear the input and return to the default option states.
Example input “INFO ready / Error: timeout / error: retry” with keyword “error” keeps both error lines when case matching is off; with case matching on, only the lowercase “error: retry” line matches.
Use cases
See how the tool fits into real work and everyday tasks.
When a pasted list has one item per line, include a keyword to extract the entries that mention it, then copy the result into the next document or worksheet.
When reviewing a short log excerpt, exclude a literal status word to hide matching lines. Check case sensitivity if the source uses varied capitalization.
Turn on trimming when spaces at the start or end of each line should be removed as part of the output. Review the result before reusing it in a format where spaces matter.
Q&A
Find concise answers to common questions and confusing cases.
No. The keyword is matched as literal text within each line; characters such as a period or asterisk have no special pattern meaning.
No. It keeps a line when the keyword appears anywhere in that line, including inside a longer word.
No. Matching is performed line by line; blank lines can remain when they match the selected mode, and duplicate lines are not removed.
The input is returned without keyword filtering. If trimming is enabled, each returned line is trimmed.
Notes
Review scope, result limitations, and important precautions before use.
Trimming changes the text at the start and end of each line, so leave it off if indentation or trailing spaces carry meaning. This is a direct text filter and does not parse CSV fields, understand log severity, or preserve a separate record structure beyond newline-separated lines.
Related
Discover related tools, collections, and available API capabilities.