Article View: be.comp.programming
Article #5065Re: Regex: hoe iets te excluden?
From: Gunter Schelfhout
Date: Fri, 23 May 2003 10:02
Date: Fri, 23 May 2003 10:02
22 lines
1664 bytes
1664 bytes
Roel Schroeven wrote: [knip] >> >> grep "\bbar\b" >> >> \b -> wordboundary >> >> Dus grep gaat nu greppen op het woord bar slechts als dit voorkomt als >> een zelfstandig woord. > > Het zou ook moeten matchen als het in een woord voorkomt. Of in het > begin van een regel, of op het einde, of allebei; altijd eigenlijk, > alleen niet als 'foo' er vlak voor staat. Dat is niet wat uw voorbeeld weergaf. ;-) grep "[^(foo)]bar" -- Blood, sweat & tears
Technical Details
Message-ID:
<Vkmza.15706$1u5.1417@afrodite.telenet-ops.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.infoave.net!newsfeed1.easynews.com!easynews.com!easynews!news-out.cwix.com!newsfeed.cwix.com!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mailReferences:
<pXlza.15654$1u5.1208@afrodite.telenet-ops.be> <l8mza.15670$1u5.1346@afrodite.telenet-ops.be> <Afmza.15691$1u5.1402@afrodite.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: fcea4,42e50ad98d9b8861 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2003-05-23 03:04:06 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.infoave.net!newsfeed1.easynews.com!easynews.com!easynews!news-out.cwix.com!newsfeed.cwix.com!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail From: Gunter Schelfhout <nospam@please.com> Subject: Re: Regex: hoe iets te excluden? Newsgroups: be.comp.programming References: <pXlza.15654$1u5.1208@afrodite.telenet-ops.be> <l8mza.15670$1u5.1346@afrodite.telenet-ops.be> <Afmza.15691$1u5.1402@afrodite.telenet-ops.be> Lines: 22 User-Agent: KNode/0.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: <Vkmza.15706$1u5.1417@afrodite.telenet-ops.be> Date: Fri, 23 May 2003 10:02:29 GMT NNTP-Posting-Host: 213.118.153.61 X-Complaints-To: abuse@telenet.be X-Trace: afrodite.telenet-ops.be 1053684149 213.118.153.61 (Fri, 23 May 2003 12:02:29 MET DST) NNTP-Posting-Date: Fri, 23 May 2003 12:02:29 MET DST Organization: Telenet Internet