I wish to search for whether two words appear in a number of files (Alt-F7, in Find Text).
They may not be next to be each. In other programs I would normally use the AND operator (eg. Word1 AND Word2). But this does not appear to be available in TC, even in Regular Expressions.
Is this possible and what is the syntax?
Victor Warner
Search
Moderators: Hacker, petermad, Stefan2, white
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
If the words appear on the same line in the textfile, you can use regular expressions. In your case:
(word1|word2).*(word1|word2)
where you are searching for word1 AND word2.
This will find those:
word1 blabla word2
word2 blabla word1
word1 blabla word1
word2 blabla word2
(word1|word2).*(word1|word2)
where you are searching for word1 AND word2.
This will find those:
word1 blabla word2
word2 blabla word1
word1 blabla word1
word2 blabla word2
I switched to Linux, bye and thanks for all the fish!
-
- Junior Member
- Posts: 15
- Joined: 2004-04-19, 06:16 UTC
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary