Filter Lines by Keyword
Keeps or removes lines that contain a keyword or match a regular expression.
Loading tool...
Runs in your browser. Nothing is sent anywhere.
When to use it
Handy for pulling the lines that mention a given city out of an order log, dropping every line marked canceled from a customer list, or trimming a server log down to error lines.
Matching respects Vietnamese accents, so typing ha noi will not match Hà Nội. Turn on regular expressions to match several terms at once, like Hà Nội|Hải Phòng, or only lines starting with 09 using ^09.
How to use
- Paste your text into the left box.
- Enter a keyword and choose whether to keep or remove matching lines.
- Click Copy or Download.
Frequently asked questions
Is my text sent to a server?
No. The tool runs entirely in JavaScript in your browser, and the text you paste never leaves your device.
Related tools
More Text tools
Remove Invisible CharactersRemoves zero-width characters, BOM and soft hyphens, and turns non-breaking spaces into regular spaces.Reverse TextWrites text backwards by character or by word, keeping accented letters and emoji intact.Extract URLs from TextFinds and lists every http, https and www link in your text, removing duplicates and trailing punctuation.Vietnamese Tone Mark Style ConverterMakes the placement of tone marks consistent for the vowel groups oa, oe and uy, switching between the old style and the new style.Extract Domains from TextReduces every link in your text to a list of domain names, handy for counting sources or building a list of websites.Normalize Vietnamese UnicodeConverts Vietnamese text in decomposed form (separate accent marks, common when copying from macOS or PDF) to precomposed form so search and sorting work correctly.
See all text tools