[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] The list is back up!
From: |
Wojciech Komornicki |
Subject: |
Re: [h-e-w] The list is back up! |
Date: |
Tue, 9 Sep 2003 16:41:20 -0500 |
>>>>> "John" == John C Polking <address@hidden> writes:
John:> I am happy to see this list in operation again.
John:> At the risk of boring everyone, I raise an old problem. I want to do a
John:> global search and replace where the replacement text includes a CR/LF
(I
John:> am using a PC). I know how to do the search and replace. It is the
John:> CR/LF that puzzles me.
John:> What angers me is that I used to know how to do this, but I have
John:> forgotten.
Let's say you want to replace the CR/LF with "xxx"
If you are just doing it in a buffer you can do
(replace-string "\n" "xxx" nil nil nil)
since in the PC world a new line character is the two characters CR/LF.
If you want to do this for a bunch of files you can adapt this to your
favorite multi-file search-and-replace command
--
Wojciech Komornicki Dept of Mathematics
wnk at hamline.edu Hamline University
http://www.hamline.edu/~wnk/ St Paul, MN 55104
USA
- [h-e-w] The list is back up!, David Vanderschel, 2003/09/08
- RE: [h-e-w] The list is back up!, Bingham, Jay, 2003/09/09
- RE: [h-e-w] The list is back up!, C. R. Oldham, 2003/09/09
- RE: [h-e-w] The list is back up!, Raymond Zeitler, 2003/09/09
- RE: [h-e-w] The list is back up!, C. R. Oldham, 2003/09/09
- RE: [h-e-w] The list is back up!, Raymond Zeitler, 2003/09/10