Any Logical AND?

General questions about using TextPad

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

Post Reply
Chris

Any Logical AND?

Post by Chris »

Is there any work around to get a logical AND in TextPad regex?
Ed

Re: Any Logical AND?

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

Re: Any Logical AND?

Post 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?
Ed

Re: Any Logical AND?

Post by Ed »

Miss out the square brackets
Chris

Re: Any Logical AND?

Post by Chris »

Ed, Muchly appreciated :-)
Post Reply