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

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

Re: Why are RegExps never working?


From: Sven Bretfeld
Subject: Re: Why are RegExps never working?
Date: Mon, 12 Nov 2007 00:24:42 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1.50 (gnu/linux)

Peter Dyballa <address@hidden> writes:

> I'm not sure whether it's described so clearly. The main thing is that
> text is line oriented and therefore $ states end of line. And
> therefore regular expressions end at line's end. So in the middle of
> the from part $ cannot have another meaning than the character $
> itself. If the from part has to stretch over more than one line, then
> each line ending has to be expressed with the linefeed character that
> separates the text into more than one line. Could be sometimes a
> carriage return (^M) has to be used, or some combination of carriage
> return and linefeed ...

Aha, I see. Now, more things I noticed in my few experiences with
RegExps become clear. Sometimes I search and replace longer regexps
and wonder why some are always skipped. Now I understand: these are
the ones extending over more than one line.

Thank you

Sven

Attachment: pgpp_d3ZjUj87.pgp
Description: PGP signature


reply via email to

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