procmail
[Top] [All Lists]

Re: better than: X Y|Y X

2001-10-17 23:18:55
Jim Osborn <jimo(_at_)eskimo(_dot_)com> writes:
I'd like to think there's a more clever approach than the
brute-force: X Y|Y X, but I can't seem to see it.  Writing
(X)? Y (X)? doesn't do the job because it can match just Y. 

Nope.  (X Y|Y X) is the only regexp that just matches those two phrases.


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>