Extract lines that contain a search value
Use this tool to filter text line by line. Enter a value in Search, and matching lines appear in the readonly output area.
How to extract matching lines
- Paste text into the input area, or use Drop file or Upload to provide a file.
- Enter the value to find in Search.
- Choose any matching options that apply: Case sensitive, Use regex, or Invert (exclude matching lines).
- Read the filtered text in the readonly output area.
- Use Copy to copy the result or Download to download it.
Search and matching controls
- Search accepts the word, phrase, or pattern you want to find.
- Case sensitive is available as a matching option.
- Use regex is available for regular-expression searches.
- Invert (exclude matching lines) is available when you want to exclude matching lines.
The inspected page does not document literal-matching rules, regex flags or syntax, invalid-pattern handling, blank searches, or the exact trigger that recalculates the output after an edit.
Copy or download the extracted text
After the result appears, select Copy to place it on the clipboard. Select Download to save the result. The download filename and format are not confirmed by the inspected implementation.
Limitations and unconfirmed behavior
- Accepted upload file types, upload errors, file-size limits, line-count limits, and browser limits are not documented.
- The page does not confirm how no-match results, invalid regex patterns, or blank searches are handled.
- Output line-ending preservation is not confirmed.
- The inspected implementation does not establish where processing occurs or whether input or output is transmitted.
Frequently asked questions
How can I extract specific lines from a log file?
Paste the log text into the input area, enter the value you want to find in Search, and review the matching lines in the readonly output area. You can also use Drop file or Upload; accepted file types and upload limits are not documented.
Does this tool support Regular Expressions (Regex)?
Yes. The page provides a Use regex option. The page does not document the supported syntax, flags, or behavior for invalid patterns.