Search

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Victor Warner
Junior Member
Junior Member
Posts: 15
Joined: 2004-04-19, 06:16 UTC

Search

Post by *Victor Warner »

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
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

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
I switched to Linux, bye and thanks for all the fish!
Victor Warner
Junior Member
Junior Member
Posts: 15
Joined: 2004-04-19, 06:16 UTC

Post by *Victor Warner »

Thank you for your reply. I am not sure that the two words I am looking for are on the same line. What would be the syntax then?

Victor Warner
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

In that case i dont know if there is a solution. But in this forum there are many smart people, just wait, im sure they will come up with a nice trick...
:-)
I switched to Linux, bye and thanks for all the fish!
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Well, search for first word, Feed to listbox, Select all, Search for second word...

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply