help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: silly regexp-replace question: how to delete empty lines


From: Thomas L Roche
Subject: Re: silly regexp-replace question: how to delete empty lines
Date: Wed, 3 Mar 2004 23:07:37 -0500

"leo" Wed, 3 Mar 2004 12:11:08 +1100
> in a buffer like

>   text is here
>   and here and
>   here

>   further text is here

>   an the endtext

> i want to delete the two empty lines by an regexp-replace.

Umm ... do you know that you don't need a regexp? You can just do

> M-x replace-string
> C-q C-j C-q C-j
> C-q C-j

That being said,

> M-x replace-regexp
> C-q C-j C-q C-j
> C-q C-j

also works ... but you're not really replacing regexp, just a fixed
string.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]