procmail
[Top] [All Lists]

Extension regex [Was: Damn this Sexy-Fun garbage!]

2001-03-08 21:00:49
"Timothy Luoma" <elists(_at_)1stpc(_dot_)org> writes:
...
Is this a proper regex for all those extensions?

m(db|de|sc|s(i|p|t))|p(cd|if)|reg|s(c(r|t)|hs)|url|vb(e|s)?|ws(c|f|h)

Yes, though character classes are more efficient for the places they apply:

m(d[be]|s[cipt])|p(cd|if)|reg|s(c[rt]|hs)|url|vb[es]?|ws[cfh]


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