Extract Filters
Extract email addresses
Extract email addresses. This filter searches for email addresses of the form person@server.domain, and writes them out one per line (using a DOS line feed, CR/LF).
Usually this filter is followed by a Sort filter, with the remove duplicate lines option. This is followed by a Search and Replace filter, searching for \013\010 and replacing with a comma or semi-colon, depending on the email address separator used by your email software.
Extract URLs
Extract URLs. This filter lists http://, https://, ftp:// and gopher:// URLs one per line (using a DOS line feed, CR/LF).
Usually this filter is followed by a Sort filter, with the remove duplicate lines option.
Extract Matches by line
This filter only keeps text (not lines) that match a regular expression. All other text is discarded. If you do not need this filters ability to also include the current filename and line number, you should use the Extract option of the Find and Replace filter because it is far more flexible.
- Extract Matches
The string or pattern to find. The string can be found anywhere on a line or over multiple lines. The right-click (or context) menu on this field supports Undo, Cut, Copy, Paste, Delete, Clear Entire Field, Select All and Select All And Copy, entering special characters and inserting pattern match characters.
- Ignore Case
When checked, the case of the string found doesn't have to be identical to the Match Pattern exactly.
- Output Count of Matches
When checked, outputs a count of the number of matches in each file.
- Include Filename
When checked, outputs the filename prior to showing its matches.
Extract matching/non-matching lines
TextPipe will retain any lines that match/don't match the given pattern, all other lines will be deleted. For options, please see the Restrict to matching lines filter. Unlike that filter, this filter is not allowed to have any sub filters.
Note - any non-matching lines are discarded, so you can't really use two Retain Matching Lines filters in a row. Instead, use an or '|' operator in the pattern match.
Remove lines from list
TextPipe will retain all lines that EXACTLY match any of the lines in the given text file, or in the text memo area, all other lines will be deleted (line breaks can be of any format).
Extract lines matching pattern list
TextPipe will Extract all lines that match any of the patterns in the given text file (or specified in the text memo area), all other lines will be discarded. Each pattern must be specified on a line of its own (line breaks can be of any format). Each line is interpreted as a perl-style pattern, with options of case-insensitive matching, non-greedy matching, comments not allowed. If you need to change these options, precede each line by the following codes:
| Change option command |
Result |
| (?-i) |
Case-sensitive matching |
| (?x) |
Comments allowed |
| (?U) |
Greedy matching |
|