Using the Emacs query-replace-regexp function (C-M-%), is it possible to
specify a newline in the substitution string?

I have several lines of text containing a comma-separated list of strings:

foo, bar, baz, [...]

which I want to break into a list with one string per line with some
additional text in prefixing each string:

<LE>foo
<LE>bar
<LE>baz
 ...

I tried specifying ", ." (without the quotes) as the search string and
"\013<LE>", "\n<LE>", and "^<LE>" as the replacement strings.  The first two
fail with an "invalid use of \" error; the third insert the character "^"
rather than a newline.

Any ideas anyone?

Thanks.
Jerry


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to