Regex search for line of text containing multiple strings
- Sean O'Shea
- Apr 6, 2018
- 1 min read
You can use the following Regular Expression search to find individual lines of text which contain all of the designated words:
^(?=.*?\bzealous\b)(?=.*?\badvocates\b)(?=.*?\bloyalty\b).*$
This search will look for any line in a text file that contains the words, 'zealous', 'advocates', and 'loyalty'. Here's a demonstration using NotePad++.
