Purpose:
Remove lines or delimited items containing/not containing a specified text string with optional regex matching.
Instructions:
Load working-text, enter other delimiter if needed, enter find string into "this text" field, choose containing/not containing and click "Remove lines/items" button.
Regex instructions:
A "regular expression" (regex) is a sequence of characters defines a search pattern within a matching action.
Within a regex phrase are literal and special characters of which the special characters define what actions are to be done.
Special characters []{}().*+?^=!:$\| will function as literal characters when escaped with a single backslash.
Use the "Enter literal find text to escape special characters" tool at page bottom to escape a mix of literal and special characters used as literals.
Regex examples:
Below are regex examples that may meet your needs or be altered to meet your needs. Be sure to check "Allow regex matching" checkbox to enable regex matching.
Match if either ("a" or "b" or "c") are in line.
Working-text is:
1. abcd
2. xyz
3. acef
To match if either ("a" or "b" or "c") are within lines, check containing button, enter regex phrase a|b|c into "this text", click "Remove lines/items" button and result will be:
2. xyz
Check "not containing" button for inverse result.
Match only if ("a" and "b" and "c") are in line.
Working-text is:
1. abcd
2. xyz
3. acef
To match only if ("a" and "b" and "c") are within lines, check containing button, enter regex phrase (?=.*a)(?=.*b)(?=.*c) into "this text", click "Remove lines/items" button and result will be: