search

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
samhelmich
Posts: 1
Joined: Wed Aug 11, 2010 3:31 pm
Location: Chicago

search

Post 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
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post 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
Post Reply