perl filter/cleanfeed error ...

Dickon Hood dickon.hood at bbc.co.uk
Wed Jul 4 16:48:19 UTC 2001


On Wed, Jul 04, 2001 at 17:28:36 +0100, I wrote:

: On Wed, Jul 04, 2001 at 13:10:21 -0300, The Hermit Hacker wrote:

: : Can someone explain this one to me?  It *looks* okay in the config file,
: : from what I can tell :(

: : Perl function filter_art died: /^alt\.binaires|sexzilla|*early*teen*|*lolita*|*pedo*|*pre*teen*|/: ?+*{} follows nothing in regexp at /news/admin/bin/filter/filter_innd.pl line 554

: '*' means 'at least zero of the last character'; you've not specified any
: last characters at the start (for example) of '*early*teen'.  ITYM:

: /^alt\.binaires|sexzilla|.*early.*teen.*|.*lolita.*|.*pedo.*|.*pre.*teen.*/o;

: or somesuch.

Oh, no, you didn't.  That regexp is completely screwed.  You need to
bracket the bits between the pipes, or the pipes will operate only on the
end characters.  You *probably* mean something akin to:

/^alt\.binaries.*(sexzilla)|(early.*?teen)|(lolita)|(pedo)|(pre.*?teen)/o;

but I could be wrong.

-- 
Dickon Hood, boiling in the heat, trying not to watch Wimbledon...

BBC Internet Services,
Kingswood Warren.
(+44 1737 8)39754.  Mail me.  Don't phone if possible.  Ta.


More information about the inn-workers mailing list