Extract Matching Lines
Keep only the lines that contain a substring or match a regex.
Runs locally · Nothing uploaded
Input text
Matching lines
Result will appear here…Advertisement
About Extract Matching Lines
Filters your text down to the lines matching a pattern — a plain substring by default, or a regular expression when regex mode is on. It behaves like grep for pasted text: point it at a log dump and keep only the error lines, or extract every line mentioning a request ID.
Related tools
Text & RegexRuns locally in your browser.Remove Matching LinesDelete every line that contains a substring or matches a regex.Text & RegexRuns locally in your browser.Regex TesterTest regular expressions with live match highlighting and group details.Text & RegexRuns locally in your browser.Find and ReplaceReplace text across a document, with optional regex and case options.