can texpad use the logical operator AND

General questions about using TextPad

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

Post Reply
happy hopping
Posts: 2
Joined: Sat Feb 18, 2012 7:28 am

can texpad use the logical operator AND

Post by happy hopping »

for eg. say I want to search for a line of text that contains

dog AND cat

can textpad do that?
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

To search for "dog" followed by "cat":

Find what: dog.*cat

To search for "dog" and "cat" on the same line regardless of order:
First enable POSIX regular expression syntax in Configure > Preferences > Editor, then:

Find what: dog.*cat|cat.*dog
happy hopping
Posts: 2
Joined: Sat Feb 18, 2012 7:28 am

Post by happy hopping »

thanks for helping out
Post Reply