🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #4358

Re: finding "India" and not "Indiana"

#4358
From: Soh Kam Hung
Date: Mon, 28 Jun 1993 23:46
19 lines
1498 bytes
fish@daacdev1.stx.com (John Vanderpool) writes:
>clp@tiamat.umd.umich.edu (Ritesh Patel) writes:
>>[ ... Finding the string ``India'' instead of ``Indiana''.
>[... Suggests regular expressions ... ]

Try the regular expression: \<india\>.  \< matches an empty string at
the start of a word, \> matches an empty string at the end of a word.
Tabs or spaces on either side of the word are effectively ignored.

In C shell, stop the shell from expanding < and > by putting them in
single quotes.  Eg:

$ nn -Q -mxX '-s/\<india\>' soc

Regards,

-- 
Soh Kam Hung, Network Management Research,     | h.soh@trl.oz.au  
TRL, POB 249 Clayton, Victoria 3168, Australia | +61 3 253 6638
Technical Details
Message-ID: <1993Jun28.234649.186@trl.oz.au>
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!xlink.net!howland.reston.ans.net!usc!sdd.hp.com!caen!batcomputer!munnari.oz.au!bruce.cs.monash.edu.au!trlluna!titan!tmp_ip_003!soh
References: <clp.741065430@tiamat.umd.umich.edu> <fish.741243465@news.gsfc.nasa.gov>

Show Full Headers
Complete Article Headers
Message-ID: <1993Jun28.234649.186@trl.oz.au>
Subject: Re: finding "India" and not "Indiana"
Date: Mon, 28 Jun 1993 23:46:49 GMT
From: soh@tmp_ip_003.trl.OZ.AU (Soh Kam Hung)
References: <clp.741065430@tiamat.umd.umich.edu> <fish.741243465@news.gsfc.nasa.gov>
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!xlink.net!howland.reston.ans.net!usc!sdd.hp.com!caen!batcomputer!munnari.oz.au!bruce.cs.monash.edu.au!trlluna!titan!tmp_ip_003!soh
Newsgroups: news.software.nn
Keywords: search subject
Sender: root@trl.oz.au (System PRIVILEGED Account)
Organization: Telecom Research Labs, Melbourne, Australia
Lines: 19