Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!PEBBLES.BBN.COM!jr From: jr@PEBBLES.BBN.COM (John Robinson) Newsgroups: comp.emacs Subject: Re: A regexp for blank lines Message-ID: <8803140409.AA16587@ucbvax.Berkeley.EDU> Date: 14 Mar 88 03:53:43 GMT References: <4623@eagle.ukc.ac.uk> Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: jr@BBN.COM Organization: The Internet Lines: 10 >> A specific way of doing what you want with blank lines is to remove all >> occurrences of the string ^J^J (i.e. a blank line consists of the >> string newline-newline) 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