[Top][All Lists]

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

Re: minor question for lispref/searching.texi,v -r1.69

From: Giorgos Keramidas
Subject: Re: minor question for lispref/searching.texi,v -r1.69
Date: Wed, 8 Mar 2006 14:19:04 +0200

On 2006-03-08 12:54, Giorgos Keramidas <address@hidden> wrote:
> Revision 1.69 of lispref/searching.texi includes:
> % +In practice, most @samp{]} that occur in regular expressions close a
> % +character alternative and hence are special.  However, occasionally a
> % +regular expression may try to match a complex pattern of literal
> % address@hidden and @samp{]}.  In such situations, it sometimes may be
> % +necessary to carefully parse the regexp from the start to determine
> % +which square brackets enclose a character alternative.  For example,
> % address@hidden, consists of the complemented character alternative
> % address@hidden, which matches any single character that is not a square
> % +bracket, followed by a literal @samp{]}.
> I think that the sample of the second paragraph doesn't match the text
> description, or am I parsing the regexp incorrectly?
>     [^][]
> This doesn't match ``the complemented character alternative "[^][]"'' or
> ``any single character that is not a squarebracket, followed by a
> literal "]"''.
> Shouldn't the regexp be ``[^]]]'' for this to be a correct description?

Hum.  Nevermind.  Not enough coffee yet, I guess.  I just noticed the
character I've missed.

reply via email to

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