[Top][All Lists]

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

Re: Unquoted special characters in regexps

From: martin rudalics
Subject: Re: Unquoted special characters in regexps
Date: Sun, 26 Feb 2006 18:53:48 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> Apart from correcting the bug we are discussing, it also corrects
> another misstatement:
>     For example, a string with unbalanced square brackets is invalid
>     (with a few exceptions, such as `[]]'),
> That is incorrect as the examples below show.
> ELISP> (string-match "]]]]" "]]]]")
> 0
> ELISP> (string-match "[[]" "[")
> 0

Your example doesn't show that.  You reason about validity in presence
of a sentence like

      *Please note:* For historical compatibility, special characters
   are treated as ordinary ones if they are in contexts where their
   special meanings make no sense.

reply via email to

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