Page 1 of 1

How to: Search multiple files for multiple words/phrases

Posted: Wed Jun 15, 2011 12:22 pm
by DataMystic Support
TextPipe is designed to search and replace rather than just search.

However, you can also use it to search for phrases using Filters\Extract\Extract lines matching (grep) – and you can also get context lines before and after, file names and line numbers, just by checking the options.

With the pattern type set to 'Pattern (perl)', or 'Pattern (egrep)', specifying one or more words or phrases like this:

Code: Select all

invoice|purchase order|quote
With the pattern type set to 'Pattern (EasyPattern)', specifying one or more words or phrases like this:

Code: Select all

invoice[or]purchase order[or]quote
The trick is to send the output to the clipboard or a new file using the Output Filter at the bottom of the filter tree.