Article View: news.software.readers
Article #243432Re: help with leafnode 2 only_groups_pcre regex?
From: Adam Funk
Date: Wed, 24 Nov 2010 16:00
Date: Wed, 24 Nov 2010 16:00
22 lines
1897 bytes
1897 bytes
On 2010-11-21, Christian Ebert wrote: > * Adam Funk on Sunday, November 21, 2010: >> 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? > > That's called a "negative lookbehind assertion". In case you want > to get a headache, consult man pcrepattern ;-) Well, I didn't make that regex up myself! I think I got it here or on the leafnode list. -- The three-martini lunch is the epitome of American efficiency. Where else can you get an earful, a bellyful and a snootful at the same time? [Gerald Ford, 1978]
Technical Details
Message-ID:
<kepvr7xd5k.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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<6donr7x00i.ln2@news.ducksburg.com> <v51or7x8242.ln2@krille.blacktrash.org> <p8gor7xatt.ln2@news.ducksburg.com> <p7nor7xj492.ln2@krille.blacktrash.org>Show Full Headers
Complete Article Headers
Message-ID: <kepvr7xd5k.ln2@news.ducksburg.com> Subject: Re: help with leafnode 2 only_groups_pcre regex? Date: Wed, 24 Nov 2010 16:00:52 +0000 From: Adam Funk <a24061@ducksburg.com> References: <6donr7x00i.ln2@news.ducksburg.com> <v51or7x8242.ln2@krille.blacktrash.org> <p8gor7xatt.ln2@news.ducksburg.com> <p7nor7xj492.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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: $CABAL Lines: 22 X-Trace: individual.net mwob5+3EIBH1J209lPvVHg++0Qi359997LRN2RBX+Tuetmv9gk X-Orig-Path: news.ducksburg.com!not-for-mail Cancel-Lock: sha1:o78/zkvywZp2a5rEOjGzjGg8rUk= sha1:hNCr9VGbzv7N7geLrAwkPXw4qQU= User-Agent: slrn/pre1.0.0-16/mm/ao (Ubuntu Intrepid) X-Original-Bytes: 1682