Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!think!mit-eddie!genrad!decvax!ucbvax!CC5.BBN.COM!jr From: jr@CC5.BBN.COM (John Robinson) Newsgroups: net.emacs Subject: Re: regular expressions and operations other than replace Message-ID: <8610201450.AA26931@ucbvax.Berkeley.EDU> Date: Mon, 20-Oct-86 10:34:46 EDT Article-I.D.: ucbvax.8610201450.AA26931 Posted: Mon Oct 20 10:34:46 1986 Date-Received: Tue, 21-Oct-86 23:28:03 EDT References: <8356@sri-spam.istc.sri.com> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 12 Then again, you could use this built-in function in the loop: replace-regexp: Replace things after point matching REGEXP with TO-STRING. Preserve case in each match if case-replace and case-fold-search are non-nil and REGEXP has no uppercase letters. Third arg DELIMITED (prefix arg if interactive) non-nil means replace only matches surrounded by word boundaries. In TO-STRING, \& means insert what matched REGEXP, and \ means insert what matched th \(...\) in REGEXP. /jr