Regex search for line of text containing multiple strings
top of page

Regex search for line of text containing multiple strings


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++.


bottom of page