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: leo
Subject: Re: silly regexp-replace question: how to delete empty lines
Date: Thu, 4 Mar 2004 10:53:31 +1100

thanks peter

now i recall: i guess, the fact that "^[C-j]" works but "^$[C-j]" doesn't,
is kind of a regexp bug/feature in emacs, isn't it?

cheers, leo

"Peter Lee" <pete_lee@swbell.net> wrote in message
uy8qhy9lp.fsf@swbell.net">news:uy8qhy9lp.fsf@swbell.net...
> >>>> leo  writes:
>
>     leo> so i tried (replace-regexp "^$ " "ghdfg" nil nil nil) where the
>     leo> linefeed was type as C-q C-j. but it doesn't find anything.
>
> The following works.
>
> (replace-regexp "^
> " "blank line
> " nil nil nil)
>
>
> ---------------------
>   text is here
>   and here and
>   here
>
>   further text is here
>
>   an the endtext
>
> ---------------------
>




reply via email to

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