Boolean searches

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
nosredna
Posts: 1
Joined: Thu Apr 08, 2004 8:10 pm

Boolean searches

Post by nosredna »

Is it possible to do boolean searches in Textpad.

I am trying to find a word between 2 other words or near another word; specifically the word "superscript" near "genericname" or between 2 instances of "genericname". Is this possible?

Thanks in advance.
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Use regex's (w/POSIX style from the Editor page of the Preferences dialog box).

"superscript" between 2 instances of "genericname"
find genericname.{1,30}superscript.{1,30}genericname

"superscript" near "genericname"
find superscript.{1,30}genericname|genericname.{1,30}superscript

Here you set the min and max distance using the {1,30}.
One thing though, this only works on a single line at a time.
(You can temporarily replace newline chars with a dummy string and search the file as a single line.) HTH
Then I open up and see
the person fumbling here is me
a different way to be
Post Reply