emacs-devel
[Top][All Lists]
Advanced

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

Re: Fwd: Issue with rx: (rx (and anything anything)) seems incorrect


From: Stefan Monnier
Subject: Re: Fwd: Issue with rx: (rx (and anything anything)) seems incorrect
Date: Sat, 30 Jun 2007 14:52:26 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

> Would someone please DTRT, then ack?

Fixed,

> The following is not:
> (rx (and anything anything)) => "\\(?:.\\|
> .\\|
> \\)"

> I have no idea why the newlines are inserted, nor why there are choice
> bars (|).  Why not just "\\(?:..\\)" as before?

anything matches any char, whereas . does not match newlines.  But the
result you see is indeed wrong.  It should be
"\\(?:.\\|\n\\)\\(?:.\\|\n\\)".  Thanks for the report,


        Stefan




reply via email to

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