🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #4220

Re: nn and regexp

#4220
From: Sven Guckes
Date: Sun, 23 May 1993 19:51
25 lines
1737 bytes
coop@panix.com (Robert Cooper) writes:

>One small correction to my original posting; I'm not including the 
>/ before my expression. So my line actually reads:
>	(regexp): *bondage*

Well, if you insist on using regexpr then you should state something for
the asterisk ('*') to be applied to.
Use '.' to indicate any charcter (except newline) and THEN let the
asterisk follow up:
.*<string>.*

Anyway, the pattern given here actually is just another way of saying
"look for <string> anywhere in the subject".
This happens to be the default search method for NN,
so I wonder why you use regexpr at all.
If you want to kill by substring ONLY
then this will certainly work:
'K' 'k' 's' '<string>' 'g' ' '
(Kill menu command:  kill by subject substring <string> in group current)

But then again you might want to kill all articles about bondage except
for a certain person in a certain group...

Sven :)
Technical Details
Message-ID: <5HRDBN2C@math.fu-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!Germany.EU.net!mcsun!uunet!think.com!spool.mu.edu!nigel.msen.com!math.fu-berlin.de!guckes
References: <1tj2q6$kbp@sun.Panix.Com> <1tj4vm$mjg@sun.Panix.Com> <1tj8te$re1@sun.Panix.Com>

Show Full Headers
Complete Article Headers
Message-ID: <5HRDBN2C@math.fu-berlin.de>
Subject: Re: nn and regexp
Date: Sun, 23 May 1993 19:51:27 GMT
From: Sven Guckes <guckes@math.fu-berlin.de>
References: <1tj2q6$kbp@sun.Panix.Com> <1tj4vm$mjg@sun.Panix.Com> <1tj8te$re1@sun.Panix.Com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!Germany.EU.net!mcsun!uunet!think.com!spool.mu.edu!nigel.msen.com!math.fu-berlin.de!guckes
Newsgroups: news.software.nn,panix.questions
Originator: guckes@medusa
Sender: news@math.fu-berlin.de (Math Department)
X-Mail-Reader: Elm 2.4 PL21
Organization: Free University of Berlin, Germany
X-News-Reader: NN 6.4.13 #13
Lines: 25