Article View: news.software.readers
Article #28240Re: NX - kill $ signs
From: Peter Tatiner
Date: Mon, 09 Dec 1996 00:00
Date: Mon, 09 Dec 1996 00:00
68 lines
2957 bytes
2957 bytes
In article <589t7e$ot2@spruce.citicorp.com>, pnaaba@avp.pbz (Xriva Znegva) wrote: >Path: news.ifu.net!imci5!newsfeed.internetmci.com!tezcat!news.bbnplane t.com!cam-news-hub1.bbnplanet.com!uunet!in2.uu.net!192.193.195.1 94!citicorp.com!martinpc >From: pnaaba@avp.pbz (Xriva Znegva) >Newsgroups: news.software.readers >Subject: Re: NX - kill $ signs >Date: Fri, 06 Dec 96 19:45:59 GMT >Organization: See my .sig >Lines: 42 >Distribution: citi >Message-ID: <589t7e$ot2@spruce.citicorp.com> >References: <582nbv$95r$3@nic.ott.hookup.net> <5871pp$i8_002@miketoth.mc.net> >NNTP-Posting-Host: martinpc.cfs.citicorp.com >X-Newsreader: News Xpress Version 1.0 Beta #4 >Status: N > >In article <5871pp$i8_002@miketoth.mc.net>, > tothmike@mc.net (Spaminator) wrote: > >> So, you have to be VERY careful with the "$". It's like >> the "*" in DOS/Unix. > >No it isn't! NO, NO, NO! It indicates THE END OF THE STRING. > >Wombat$ means "Wombat as the last thing on the line." >^Wombat means "Wombat as the first thing on the line." >^Wombat$ means "Wombat is the ONLY thing on the line" > because it's anchored at both the head and the tail. > >This gives you the flexibility to pick and choose between: > > "Wombats are an important natural resource" and > "I once had carnal knowledge of a Wombat" > >...even though they both contain the identical substring >"Wombat". > >The problem is that if you put a $ at the start of your >test, you're testing for "any line that has an end" -- which >means you match every possible line. THAT's why it appears >that the dollar sign is acting like a wildcard. > >The answer to the original poster's problem -- which you >actually quoted, for Valen's sake! -- is that you have to >"escape" the dollar sign with a backslash to take away >its special meaning as an anchor. > >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. A plain, un-escaped dollar sign >should only appear as the LAST thing in the expression, because 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? Thanks. Cheers, tatiner@ifu.net
Technical Details
Message-ID:
<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-mailReferences:
<582nbv$95r$3@nic.ott.hookup.net> <5871pp$i8_002@miketoth.mc.net> <589t7e$ot2@spruce.citicorp.com>Show Full Headers
Complete Article Headers
Message-ID: <58i527$s54@news.ifu.net> Subject: Re: NX - kill $ signs Date: Mon, 09 Dec 1996 00:00:00 +0000 From: tatiner@ifu.net (Peter Tatiner) References: <582nbv$95r$3@nic.ott.hookup.net> <5871pp$i8_002@miketoth.mc.net> <589t7e$ot2@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 X-Deja-AN: 203212759 Organization: Internet For You Newsgroups: news.software.readers