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

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

Re: replacing endline


From: Fredrik Bulow
Subject: Re: replacing endline
Date: Thu, 20 Apr 2006 11:44:51 +1000
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

sarah.dzion@gmail.com writes:

> Hi I want to convert :
> 72
> 17
> 18
> 19
> 20
> 21
> 22
> 23
> 24
> 25
>
>
> to
>
> 72#17#18#19#20#21#22#23#24#25
>
> how do I do this using replace-string (or something else in emacs)?
> basically I do not know how to specify endline in emacs.
>
> Appreciate the help!
> Thanks!
> -A

A more elegant and less general way would of course be to use regexps
for this. For some reason 'query-replace-regexp' seems to choke on
expressions like \n or $^ when I try it. In fact it can't even convert
#'s to newlines. Regexps really ougth to do this but it doesn't work
for me. :-/

/Fredrik



reply via email to

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