Text 63

Extract lines containing strings

Select only lines that contain or do not contain a specific string.

Input

The example value has been entered. Check it immediately or change the value.

Run with Ctrl or ⌘ + Enter

Input is processed in the browser. Refreshing returns a sample value.

Result

Check or change the value using the example value result.

Up to 50,000 characters. Input and results are processed in this page’s memory and not saved. Line breaks use LF.

Share result

Share the tool link and result text together. No URL is included in the result. Check the below content and then share it.

Calculation·conversion criteria

Select only lines that contain a specific string or exclude them.

Uppercase and lowercase distinction includes line selection after inspection

Input example

Include apple: only apple lines remain

Select a line containing A; “AB” and “A” remain, while “BC” is removed. The exclusion mode is the opposite.

How to use

  1. Use the example currently shown, or change the input text, search text, or condition.
  2. Click Verify result and check the following result.
  3. Result can be copied if needed.

Frequently Asked Questions

Must all words match?

No. It matches if a string to be found is included anywhere in the line. Case is distinguished, and regular expressions or word boundary searches are not provided.

Calculation criteria and reference materials

The calculation formula and scope of this tool are disclosed in the above description. Examples can be checked by substituting input values into the formula or following the specified string and calendar handling rules.

Verification of calculation criteria: · Calculation·verification principles · Report errors