🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #149418

Re: [Xnews] HELP - Selectivly allowing cross-posts?

#149418
From: »Q«
Date: Sat, 05 Jun 2004 21:10
18 lines
1941 bytes
Tech Zero <spamnet-june@dragonfur.ca> wrote in
<news:Xns94FF9108073F7ZeroOne@raven.dragonfur.ca>:

> There are allot of times when you need to reverse an entry to get
> things to work, so it's nice to have positive assertion available.
> But I can't think of a reason why I'd need it right now.

I've thought of one that might come in handy someday.  Positive
lookaheads can be used to make Boolean AND expressions.  To match
strings containing 111 and 222 and 333 and 444, in any order,

(?=.*?111)(?=.*?222)(?=.*?333).*?444

It's shorter and easier to edit than the other option, which is to
use OR pipes with all the permutations of the ANDed substrings.

-- 
»Q«
Technical Details
Message-ID: <MrQ94FFA49359622itsmeitsQ@QsFQDN.dyndns.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!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!feed2.news.rcn.net!rcn!feed.news.tiscali.de!fu-berlin.de!uni-berlin.de!not-for-mail
References: <Xns94FF2A78E722FZeroOne@raven.dragonfur.ca> <MrQ94FF50D66AB90itsmeitsQ@QsFQDN.dyndns.org> <Xns94FF9108073F7ZeroOne@raven.dragonfur.ca>

Show Full Headers
Complete Article Headers
Message-ID: <MrQ94FFA49359622itsmeitsQ@QsFQDN.dyndns.org>
Subject: Re: [Xnews] HELP - Selectivly allowing cross-posts?
Date: Sat, 05 Jun 2004 21:10:42 GMT
From: »Q« <boxcars@gmx.net>
References: <Xns94FF2A78E722FZeroOne@raven.dragonfur.ca> <MrQ94FF50D66AB90itsmeitsQ@QsFQDN.dyndns.org> <Xns94FF9108073F7ZeroOne@raven.dragonfur.ca>
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!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!feed2.news.rcn.net!rcn!feed.news.tiscali.de!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: we don't need no stinkin' organization
Lines: 18
X-Trace: news.uni-berlin.de Eg33UAcfh9o9lZIkPgLOCQdiYeoMAsQFAdKQHlPmrZbz9NGBYq
X-Orig-X-Complaints-To: <http://www.cybergecko.com/complain.htm>
X-Face: *#`F(_&o, GRH~~$V&ByU1LZAWc]JgxuT`Pv2y0`&JE`(=*PcC>#m2]xv]p,
 i|9mDJ+8dGMJl`V[!z]\N}qrLTHjU]Sew>rQBShT_8.(0Q(iH,
 Gu7k|y/)^!@oVydVrix*#|-|u2~zgA'U3nQ_fa#jXvcGL[9f:>8?U=hXYK3D~*}Gq$TjPe1WXEFLGTiB3ot!oMH"'(Jop0(\0C