Page 1 of 1

Any Logical AND?

Posted: Sat Nov 23, 2002 12:39 am
by Chris
Is there any work around to get a logical AND in TextPad regex?

Re: Any Logical AND?

Posted: Sat Nov 23, 2002 9:42 am
by Ed
Isn't the default effectively a logical AND? So to search for a line that contains ABC and DEF in that order one uses
ABC.*DEF
and to find them in either order
ABC.*DEF\|DEF.*ABC

Re: Any Logical AND?

Posted: Tue Nov 26, 2002 6:29 pm
by Chris
Ed, If only it were so simple. Try: [the.*and], and you should get hundreds of 'hits' in a page of English prose, but it yields nothing. Thanks anyway. Any other ideas?

Re: Any Logical AND?

Posted: Wed Nov 27, 2002 12:52 pm
by Ed
Miss out the square brackets

Re: Any Logical AND?

Posted: Wed Nov 27, 2002 3:41 pm
by Chris
Ed, Muchly appreciated :-)