[Top][All Lists]

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

RE: [h-e-w] replacing NEWLINE or LFD

From: Dr Francis J. Wright
Subject: RE: [h-e-w] replacing NEWLINE or LFD
Date: Thu, 18 Nov 2004 15:02:57 -0000

In interactive input, you need to quote control characters that don't simply self-insert, such as tab and newline, with ^Q, i.e. enter tab as Control-Q tab or Control-Q Control-I and enter newline as Control-Q Control-J.  (Control-Q return will insert a carriage return, ^M, which is probably not what you want.)
\n works in non-interactive input, e.g. "\n" is read as the string containing a single newline character, but the interactive input routines essentially quote the \, thereby inputting \n as the string "\\n", which contains the two characters \ and n rather than a single newline.

From: address@hidden [mailto:address@hidden On Behalf Of Crosby, Alan
Sent: Thursday, 18 November 2004 2:28 pm
To: 'address@hidden'
Subject: [h-e-w] replacing NEWLINE or LFD

I've seen it mentioned in various places how to search for an unprintable character such as a TAB or NEWLINE, but I have not been able to find reference on how to replace something with one of these characters.

Specifically, I have some text that has the NEWLINEs stripped out of the text and I would like to put it back. The text is formatted such that a regexp will suit my needs.  The minibuffer accepts TABS from the TAB key, but RETURN ends the replacement sequence.  '\n' does not work in the replacement field. 

Thanks in advance

Alan Crosby

This email and any files transmitted with it are confidential, may also be privileged, and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, you may not copy or use it, or disclose it to anyone else; please notify the FileTek Security Administrators address@hidden immediately and destroy this email and any copies of it. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of FileTek, Inc. Finally, the recipient should check this email and any attachments for the presence of viruses. FileTek, Inc. accepts no liability for any damage caused by any virus transmitted by this email.

reply via email to

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