Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!pasteur!ucbvax!smpvax1.UUCP!sbb From: sbb@smpvax1.UUCP Newsgroups: comp.emacs Subject: A regexp for blank lines Message-ID: <8803141754.AA13487@trwrb> Date: 14 Mar 88 17:54:10 GMT References: <8803140423.AA16847@ucbvax.Berkeley.EDU> Sender: usenet@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 25 Reply-To: trwrb!ucbvax!BBN.COM!jr Date: Sun, 13 Mar 88 22:53:43 -0500 From: John Robinson .... Ahem ... removing them would glue the surrounding non-blank lines together. You have to replace occurences of ^J^J with ^J. If there are stretches of more than one blank line, you may have to do this more than once on the buffer. /jr jr@bbn.com or jr@bbn.uucp Well, couldn't you use regexp of the form "\^J\^J+"? This would eliminate the need for multiple passes. steve ----------------------- Steve Byrne ...ucbvax!trwrb!smpvax1!sbb Inference Corp. (213) 417-7997 5300 W. Century Blvd. Los Angeles, CA 90045