Article View: news.software.readers
Article #243333Re: help with leafnode 2 only_groups_pcre regex?
From: Adam Funk
Date: Sun, 21 Nov 2010 21:41
Date: Sun, 21 Nov 2010 21:41
32 lines
2135 bytes
2135 bytes
On 2010-11-21, Christian Ebert wrote: > * Adam Funk on Sunday, November 21, 2010: >> I'm trying to use an only_groups_pcre expression to exclude any groups >> that start with 'gmane'. This doesn't work: >> >> only_groups_pcre = ^(?<!gmane\.).*$ > > Almost. > >> and I have a hard time getting my head around the negative kind. I'd >> appreciate any help. > > only_groups_pcre = (?!gmane\.) > > iirc, you don't need ^ and .*$, as the match starts at the > beginning of the line. That did the trick, thanks! The regex I was attempting to work from eliminates binary-like group names: only_groups_pcre = ^([\+\-\w]+)(\.[\+\-\w]+(?<!binaries|binary|mp3|warez|binares|binarios|binari|binair))*$ What does the "<" in the "?<!" do there? -- No right of private conversation was enumerated in the Constitution. I don't suppose it occurred to anyone at the time that it could be prevented. [Whitfield Diffie]
Technical Details
Message-ID:
<p8gor7xatt.ln2@news.ducksburg.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<6donr7x00i.ln2@news.ducksburg.com> <v51or7x8242.ln2@krille.blacktrash.org>Show Full Headers
Complete Article Headers
Message-ID: <p8gor7xatt.ln2@news.ducksburg.com> Subject: Re: help with leafnode 2 only_groups_pcre regex? Date: Sun, 21 Nov 2010 21:41:13 +0000 From: Adam Funk <a24061@ducksburg.com> References: <6donr7x00i.ln2@news.ducksburg.com> <v51or7x8242.ln2@krille.blacktrash.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: $CABAL Lines: 32 X-Trace: individual.net 54l55YkDjBHEcmnoS9PTzAbh9NfqHXUJ6BEl2jaeFLMjOMThTO X-Orig-Path: news.ducksburg.com!not-for-mail Cancel-Lock: sha1:IjC5SwFJpe5pdU0BVBa228jlYVQ= sha1:HIpw7Fi7c7XQ9Y1tGLRAQAHp04c= User-Agent: slrn/pre1.0.0-16/mm/ao (Ubuntu Intrepid) X-Original-Bytes: 1940