🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.emacs
Article #2163

Re: regular expressions and operations other than replace

#2163
From: John Robinson
Date: Mon, 20 Oct 1986 14:34
12 lines
1094 bytes
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 \<n> means insert what matched <n>th \(...\) in REGEXP.

/jr
Technical Details
Message-ID: <8610201450.AA26931@ucbvax.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!think!mit-eddie!genrad!decvax!ucbvax!CC5.BBN.COM!jr
References: <8356@sri-spam.istc.sri.com>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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