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: Giorgos Keramidas
Subject: Re: Why are RegExps never working?
Date: Tue, 13 Nov 2007 18:37:49 +0200

On 2007-11-13 16:49, Peter Dyballa <Peter_Dyballa@Web.DE> wrote:
>
> Am 13.11.2007 um 00:53 schrieb Giorgos Keramidas:
>
>>     \([[:space:]][pP][pP]\.\)[[:space:]]+\([0-9]+\) -> \1~\2
>
> Did you try it? For me it does correct Sven's example, which is this:
>
>       text pp. 44 text text text text text text text text pp.
>       54 text
>
> It would work when the from part would not stretch over more than one line.

I did.

I used an Emacs snapshot from CVS, but I have this sort of regexp in my
~/NOTES file for several years.  The last time I updated the note was on
May 15, 2004.  It is strange that it doesn't work there.

I just tried once more, by running:

    emacs -q -nw

Then I pasted in a text-mode buffer the text:

    text pp. 44 text text text text text text text text pp.
    54 text

and after replacing the regexp shown above, my buffer now contains:

    text pp.~44 text text text text text text text text pp.~54 text

Odd, indeed...





reply via email to

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