Help searching with multiple words

Tool for Search and Replace across multiple files.
Post Reply
icyalkn1
Posts: 1
Joined: Tue Jul 22, 2014 2:15 pm

Help searching with multiple words

Post by icyalkn1 »

Hi,

I have a text file with that contains names and addresses. I am trying to search for a list of about 20 names to remove them from the file. It appears the space in between the first and last name is my issue. My question is how can I search for several names and get hits for just those names?? Below is an example, and thank you in advance for your help.

Test file is formatted like this:
MIKE SMITH 1111 WASHINGTON AVE. OAKLAND CA 90210
JIM JONES 2222 WASHINGTON AVE. OAKLAND CA 90210
JOHN HANCOCK 1234 WASHINGTON AVE. OAKLAND CA 90210

I tried searching under the "Regular Expressions" tab using MIKE SMITH|JIM JONES|JOHN HANCOCK| but this found everyone with the first name of MIKE instead of just MIKE SMITH. How can I search the file for just MIKE SMITH?

Thank you...
User avatar
DigitalVolcano
Site Admin
Posts: 1717
Joined: Thu Jun 09, 2011 10:04 am

Re: Help searching with multiple words

Post by DigitalVolcano »

This works for me -

MIKE SMITH|JIM JONES|JOHN HANCOCK

(without the last '|' on the end)
Post Reply