Re: Procmail regexp question1999-06-28 12:55:36waltdnes(_at_)interlog(_dot_)com (Walter Dnes) writes: For one of my filters I need to find one of "smtp" or "esmtp". I have a gut feeling that there is something more elegant than "(s|es)mtp". Any help on this?
As David also noted:
e?smtp
However, it'll match faster if you can force a match a previous character
unconditionally. For instance, if you know the previous character must
be a space, force the match to start with that, ala
() e?smtp
Philip Guenther
|
|
||||||||||||||||