[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Block binaries



Andrew Cranson schrieb am 2004-02-04:

> Is it possible to block binary groups in leafnode?

You can try to use only_groups_pcre to exclude them (it's a bit tricky
and you need to know about PCRE lookahead and lookbehind assertions).

Try:

only_groups_pcre = ^\w+(\.\w+(?<!binaries|binary))*$

WARNING: Choose your PCRE carefully. The \. in the parentheses above
happens to also keep the number of combinations somewhat limited, it
serves as some anchor. If your PCRE contains something like unlimited by
unlimited, along these lines:

(subpattern*)*   (doesn't matter if you use + or *)

you can easily engage your shiny new 3 GHz Intel Xeon for hours. You may be able
to limit your PCRE rules a bit by prohibiting backtracking with atomic
grouping. See the PCRE documentation (man pcrepattern or man pcre or man
7 pcre).

-- 
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95
-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
http://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/