searching multiple words

A place to try and solve your RegEx problems.
Post Reply
FredSmith
Posts: 1
Joined: Thu Aug 17, 2017 1:51 pm

searching multiple words

Post by FredSmith »

Hi all,
I'd like search for multiple words.
So if I have 3 files:
File1
One

File2
One
...
Two

File3
One
...
Two
Three

And would like to search for files containing 'One' AND 'Two' AND 'Three'
I'd like TextCrawler to return File3 only.

I've tried using RegEx One|Two|Three but that returned all the file.
I'm interested in the fily that contains all the words that I'm searching for.
Any suggestions?
Thank you.
User avatar
DigitalVolcano
Site Admin
Posts: 1379
Joined: Thu Jun 09, 2011 10:04 am

Re: searching multiple words

Post by DigitalVolcano »

It's tricky to do this with regular expressions. You can try-

one.*two.*three.*
(With dot matches newline enabled)

but the words need to be in that order in the file.
fabian
Posts: 1
Joined: Fri Jan 12, 2018 5:51 pm

Re: searching multiple words

Post by fabian »

Hi I have the same need as this post. I tried what I found here, but didn't work.
I need to find files that have text1 AND text2

how can I use AND in searchs?
User avatar
DigitalVolcano
Site Admin
Posts: 1379
Joined: Thu Jun 09, 2011 10:04 am

Re: searching multiple words

Post by DigitalVolcano »

Version 3.1.1 will have a feature to allow the batch processor to run in "AND" mode. This means that only files where all the search terms are hit will be displayed/updated.
Post Reply