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

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

Re: regular expression


From: Nuno J. Silva
Subject: Re: regular expression
Date: Tue, 26 Jan 2010 19:46:21 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Helmut Eller <address@hidden> writes:

> * Nuno J. Silva [2010-01-25 13:35+0100] writes:
>
>> The second one works here. It has the result of hitting C-q C-j, instead
>> of \n, because there are other places where emacs won't match a newline
>> with \n, and needs this.
>
> Have you tried to include \r in the regexp?

I don't know if parens are the right way to make strings in regexps, but
none of the following worked (in the place where \n was):

\n\r

(\n\r)

(\r\n)

The last one looks silly, I wonder if any system uses such a line
break. The first one would catch any of the characters. As this is UNIX
I doubt there are carriage returns on my files (but emacs could use its
own internal convention for line breaks). 

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg


reply via email to

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