🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #28288

Re: NX - kill $ signs

#28288
From: Xriva Znegva
Date: Tue, 10 Dec 1996 00:00
35 lines
1944 bytes
In article <58i527$s54@news.ifu.net>,
   tatiner@ifu.net (Peter Tatiner) wrote:

> [Quoting me]
>>If you say \$* the backslash makes the dollar sign a literal
>>thing to be matched, and it's the * that means "any number of 
>>them."  Killing \$\$\$ will kill based on the presence of 
>>exactly three dollar signs.

>So you're saying that if we key <\$\$\$> we'll kill any post 
>with 3 $ signs in it, but not, say, one with 2 or more than 4?

Not exactly.  It won't kill 2, because it's looking for three
in a row.  It WILL kill 4 or more, because you didn't terminate
the test.  It gets tricky at this point, because I don't know 
for sure how elaborate the "regular expression" engine in 
NX 2.0 is.  Specifically, I don't know if it understands that 
\b means a word boundary or \s means a space.

If this were Perl, then you could limit it to "three dollar 
signs and no more."  Something like \b\$*{3}\b maybe?

(I am only an egg and do not grok Perl in fullness.)

Anyway, since we've squared away the issue of "How do I search 
for a literal dollar sign?" perhaps we should quit while we're 
ahead?  :-)

-- 

Kevin Martin <pnaaba@avp.pbz>  V trg znvyfcnzzref' nppbhagf lnaxrq!
             ROT13 the above to get my reply address

Technical Details
Message-ID: <58jv1s$eed@spruce.citicorp.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.mbox.zip!not-for-mail
References: <582nbv$95r$3@nic.ott.hookup.net> <5871pp$i8_002@miketoth.mc.net> <589t7e$ot2@spruce.citicorp.com> <58i527$s54@news.ifu.net>

Show Full Headers
Complete Article Headers
Message-ID: <58jv1s$eed@spruce.citicorp.com>
Subject: Re: NX - kill $ signs
Date: Tue, 10 Dec 1996 00:00:00 +0000
From: pnaaba@avp.pbz (Xriva Znegva)
References: <582nbv$95r$3@nic.ott.hookup.net> <5871pp$i8_002@miketoth.mc.net> <589t7e$ot2@spruce.citicorp.com> <58i527$s54@news.ifu.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 203331113
Distribution: citi
Organization: See my .sig
Reply-to: postmaster@127.0.0.1
Newsgroups: news.software.readers