Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!swrinde!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!sugar!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.misc Subject: Re: MEL - A *Real* Programmer Keywords: Real Programmer, Hacker Message-ID: Date: 5 Nov 90 20:56:10 GMT References: <1990Oct23.235720.16178@nas.nasa.gov> <6089@nisca.ircc.ohio-state.edu> <54296@brunix.UUCP> <5777@suned1.Nswses.Navy.MIL> <8187@gollum.twg.com> <1283@gvgspd.GVG.TEK.COM> <10293@ubc-cs.UUCP> <1990Nov5.082657.28368@tkou02.enet.dec.com> Reply-To: peter@ficc.ferranti.com (Peter da Silva) Distribution: usa Organization: Xenix Support, FICC Lines: 14 In article <1990Nov5.082657.28368@tkou02.enet.dec.com> diamond@tkou02.enet.dec.com (diamond@tkovoa) writes: > I've used a dozen editors that had search patterns including "beginning" > and/or "end" of line, but none that accepted an "or" operation on > line-break "or" character class, in a single search pattern. > No sweat, just ulcers. In vi, you can search for an identifier "i" with: /\/ Where \< and \> mean beginning or end of word (alphanumeric-to-nonalpha transition), and work at the beginning or end of a line. Existence proof, and I'm sure you can try it right there... -- Peter da Silva. `-_-' +1 713 274 5180. 'U` peter@ferranti.com