🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
3 messages
3 total messages Started by Robert Cooper Fri, 21 May 1993 19:01
Re: nn and regexp
#4217
Author: Robert Cooper
Date: Fri, 21 May 1993 19:01
32 lines
1974 bytes
In <1tj4vm$mjg@sun.Panix.Com> ilaine@panix.com (Liz Stokes) writes:

>In article <1tj2q6$kbp@sun.Panix.Com> coop@panix.com (Robert Cooper) writes:
>>I thought I knew how to form regular expressions, but nn is giving me
>>a hard time.
>>Say in alt.sex.stories I want to kill all stories with the word
>>bondage in the subject line.
>>So, I select K for kill, k again then s for subject. 
>>The subject prompt gives me an offer of =/ and I type
>>	/.*bondage.*
>>No good. I try
>>	/*bondage*
>>noop.
>>
>>What am I doing wrong? (don't worry about upper/lower case for now,
>>lets just get the basics under control first!)

>	it's cuz it doesn't use regexp, you don't need the wildcards.
>try something like
>	/bondage/K  at the article level

>-Liz

Sorry but that doesn't work either :-(.
One small correction to my original posting; I'm not including the 
/ before my expression. So my line actually reads:
	(regexp): *bondage*

-- 
Robert Cooper  Brooklyn, NY | "We don't know who discovered water, but
coop@panix.com              |  we're pretty sure it wasn't a fish..."
212 309-9600 (Work)         |           Attributed to Marshall McLuhan
Re: nn and regexp
#4218
Author: Liz Stokes
Date: Fri, 21 May 1993 19:11
25 lines
1738 bytes
In article <1tj8te$re1@sun.Panix.Com> coop@panix.com (Robert Cooper) writes:
>In <1tj4vm$mjg@sun.Panix.Com> ilaine@panix.com (Liz Stokes) writes:

>>	it's cuz it doesn't use regexp, you don't need the wildcards.
>>try something like
>>	/bondage/K  at the article level
>
>>-Liz
>
>Sorry but that doesn't work either :-(.
>One small correction to my original posting; I'm not including the 
>/ before my expression. So my line actually reads:
>	(regexp): *bondage*

	oops - if I'd looked closer I'd have noticed you were using nn
not rn or trn. You could go use one of those and the above will work :)
-Liz



-- 
Liz Stokes         | 	Vikings? There ain't no vikings here, just us honest
Ilaine de Cameron  | 	farmers. The town was burning, the villagers were
                   | 	dead. They didn't need those sheep anyway. That's our
ilaine@panix.com   |    story and we're sticking to it.
Re: nn and regexp
#4220
Author: 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 :)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads