Reply To: AND in Regular Expressions

Product Compare Forums Multi-Edit Support AND in Regular Expressions Reply To: AND in Regular Expressions

#5557
AndyColson
Participant

Using Perl Expressions, in mew 9.10.04

A and B on the same line and in the same order:

a.*b

A and B on the same line, in either order:
(a.*?b)|(b.*?a)

A and B, not on the same line, in any order (but this may be slow):
(?m)(a.*?b)|(b.*?a)

-Andy