Hi, I have many files and I do regular searching.
I have no problem finding using 1 key words but when wanted to find 2 key words in a file I am lost.
Example finding Food is easy, but finding Food and 2013 is not possible?
Please advice.
Thanks.
Please help me on this.
- DigitalVolcano
- Site Admin
- Posts: 1734
- Joined: Thu Jun 09, 2011 10:04 am
Re: Please help me on this.
You could do this using a regular expression -
\bfood\b.*\b2014\b|\b2013\b.*\bfood\b
with (Dot maches newline option ticked)
This will find food and 2014 in any order in the file. Don't use this as a regex replace expression though, as you will lose the text between the keywords.
\bfood\b.*\b2014\b|\b2013\b.*\bfood\b
with (Dot maches newline option ticked)
This will find food and 2014 in any order in the file. Don't use this as a regex replace expression though, as you will lose the text between the keywords.