[Gllug] How can I revert a mail digest?
Alex Hudson
home at alexhudson.com
Tue Nov 13 19:53:53 UTC 2001
On Tuesday 13 November 2001 4:34 pm, you wrote:
> > Actually, they're not superfluous. They're needed in order to correctly
> > bound the alternates specified by the pipe. Without them, you'd
> > incorrectly match:
> >
> > formailrocmail
> > formaiprocmail
>
> Actually, no.
I would have thought yes: I agree with tet, although the tightest regex would
be more like:
$s=~m~^(?:formail|procmail(?:ex|rc)?)$~;
(where $s contain the string we're matching against - above in Perl :)
.. since (formail|procmail(ex|rc)?) will match formailrc (for example).
Cheers,
Alex.
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list