[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 <Peter_Dyballa@Web.DE> 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
pgp9d9EVwHkuq.pgp
Description: PGP signature
- Why are RegExps never working?, Sven Bretfeld, 2007/11/11
- Re: Why are RegExps never working?, Bastien, 2007/11/11
- Re: Why are RegExps never working?, Peter Dyballa, 2007/11/11
- Message not available
- Re: Why are RegExps never working?, Harald Hanche-Olsen, 2007/11/12
- Re: Why are RegExps never working?, Sven Bretfeld, 2007/11/12
- Re: Why are RegExps never working?, Lennart Borgman (gmail), 2007/11/12
- RE: Why are RegExps never working?, Drew Adams, 2007/11/12
- Re: Why are RegExps never working?, Sven Bretfeld, 2007/11/12
- Message not available
- Re: Why are RegExps never working?, Richard G Riley, 2007/11/12
- RE: Why are RegExps never working?, Drew Adams, 2007/11/12
- Re: Why are RegExps never working?, Tim X, 2007/11/13