Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!purdue!decwrl!labrea!lindy!eynon From: eynon@lindy.Stanford.EDU (Barry Eynon) Newsgroups: comp.sys.mac Subject: Re: replacing nth occurance on line Message-ID: <1526@lindy.Stanford.EDU> Date: 4 Jan 89 16:24:58 GMT References: <127200052@inmet> Reply-To: eynon@lindy.Stanford.EDU (Barry Eynon) Organization: Stanford Data Center Lines: 15 In article <127200052@inmet> ian@inmet writes: > >Does anyone know of a utility or text editor for the Mac >which will replace the nth occurance of a string on a line? > >In other words, I have a number of data fields in a text document >separated by tabs and i want to replace the first tab by a '-' >the second by '...' etc. QUED/M from Paragon Concepts has a regular expression option in it's search and replace that can easily do what you want. The program has many other nice features, including multiple file search, macros, etc. It has everything I've ever needed in a text editor. Check it out. -Barry Eynon