How to: Search multiple files for multiple words/phrases
Posted: Wed Jun 15, 2011 12:22 pm
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:
With the pattern type set to 'Pattern (EasyPattern)', specifying one or more words or phrases like this:
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.
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
Code: Select all
invoice[or]purchase order[or]quote