Page 1 of 1

search

Posted: Wed Aug 11, 2010 3:59 pm
by samhelmich
I often need to search a text file for 2 word that would be found on the sam LINE. So both words would have to exist on the same line before Textpad would highlight it.

Anybody got an idea if TEXTPAD can do this?

thanks in advancee

Posted: Wed Aug 11, 2010 6:05 pm
by ben_josephs
The HOW-TOs forum is not the the right one in which to ask questions. As it says in one place:
Instructional HowTos, posted by users. No questions here please
and in another:
PLEASE DO NOT POST QUESTIONS HERE

But here is an answer:

If the words are always in the same order:
Find what: first_word.*second_word

[X] Regular expression
If the words can be in either order:
Find what: first_word.*second_word|second_word.*first_word

[X] Regular expression
This assumes you are using Posix regular expression syntax:
Configure | Preferences | Editor

[X] Use POSIX regular expression syntax