Regex search for line of text containing multiple strings

Regex search for line of text containing multiple strings

April 6, 2018

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

 

 

 

 

Please reload

Contact Me With Your Litigation Support Questions:

seankevinoshea@hotmail.com

  • Twitter Long Shadow

© 2015 by Sean O'Shea . Proudly created with Wix.com