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.
Boolean searches
Moderators: AmigoJack, bbadmin, helios, MudGuard
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
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
"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
the person fumbling here is me
a different way to be