Free tool
Keep or remove lines containing a word
Remove lines containing a word, or do the opposite and keep only those lines. Use plain text or a pattern (regular expression).
The example is loaded. Paste your own list to replace it.
→ 2 lines
Lines that match
Match when the line
Text
Match capital letters exactly
Pattern (regular expression)
Your text
Result
What it does
Filter lines by a word or pattern.
Settings you can change
- Lines that match: Keep matching lines, Remove matching lines
- Match when the line: Contains it anywhere, Starts with it, Ends with it, Is exactly it (whole line)
- Text
- Match capital letters exactly
- Pattern (regular expression)
When to use it
A list of links includes login and cart pages you don't want. Remove every line containing "/cart" or "/login".
Example: remove lines containing
Settings used: Lines that match: Remove matching lines; Text: /cart|/login; Pattern (regular expression): on.
Input
Result
Often used with
Keep (or remove) lines that are numbers, emails or links.
Keep lines with a number of characters between a minimum and a maximum.
Keep only the parts of each line that match a pattern (regular expression).
Your text stays on this computer
Got your list from a web page?
HeyScraper turns the page you’re on into a spreadsheet, so you can skip the copying and pasting. Free: 500 pages a month.
Get HeyScraper