Article View: news.software.readers
Article #135111Re: [Dialog] Regex for "AND"
From: Antonio 'Gandalf' Favata
Date: Wed, 08 Oct 2003 16:07
Date: Wed, 08 Oct 2003 16:07
20 lines
2008 bytes
2008 bytes
news.software.readers ~ 8/10/2003 17.55 ~ Scott:
> I want to search for two or more keywords in the Subject using a regular
> expression. I read the help section about regex, but nothing seems obvious
> to me about how to set an AND condition, such as "Dialog AND Newsreader".
PCRE (Perl compatible Regualar Expression) has nothing like logical AND.
Try this: {Dialog.*newsreader|newsreader.*Dialog}
Or, better, use scoring:
+5 Subject "Dialog"
+1 Subject "newsreader"
!any_action Score %> 5
--
Fare Well! | gandalf@ithn.net ~ ICQ# 16553733 ~ now: 08/10/2003 18.03.35
G | Advice: WinEject 2.0 <http://www.wineject.com>
Aldo Biscardi � uno che fa errori di grammatica anche quando pensa.
Technical Details
Message-ID:
<b8lpp2crw6rv.dlg@gandalf.my-fqdn.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!fu-berlin.de!uni-berlin.de!212.141.247.171!not-for-mailReferences:
<k75ouvgu9f8m.3o9zgyqu00vx.dlg@40tude.net>Show Full Headers
Complete Article Headers
Message-ID: <b8lpp2crw6rv.dlg@gandalf.my-fqdn.de> Subject: Re: [Dialog] Regex for "AND" Date: Wed, 08 Oct 2003 16:07:24 +0000 From: Antonio 'Gandalf' Favata <this.address.is.valid@bigfoot.com> References: <k75ouvgu9f8m.3o9zgyqu00vx.dlg@40tude.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!fu-berlin.de!uni-berlin.de!212.141.247.171!not-for-mail Newsgroups: news.software.readers Organization: the White Council Lines: 19 Reply-To: gandalf@ithn.net NNTP-Posting-Host: 212.141.247.171 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de 1065629244 18390925 212.141.247.171 (16 [197363]) X-Now-Playing: Radio Dimensione Suono User-Agent: 40tude_Dialog/2.0.5.185it (00ebd71b.508.119) Hamster/2.0.2.2 X-Face: &]^_njQjKuBI.th%)W1+ESkFY4E:r*#8}rkHLF'QTLo,>mql9aGkV*,v.-,qVdu&8Xk(6K X-Pets: Merry <http://snurl.com/merry>, Mystra [female hamster], John Mayall [pelouche pig], Alice [my love ;*]