[Bug 4010] Regex tests using a{,2}

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4010


Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #2 from Michael Kay <mike@saxonica.com>  2008-06-20 14:48:57 ---
Noted that in 1.0 there is actually a parse for this expression because "{" is
a valid Char. (PCRE will try to interpret a quantifier as such if it can, and
will treat it as an ordinary string otherwise.) But this would create an
unacceptable incompatibility, and is not what the spec intended. This is
confirmed by the Note:

Note:  The regular expression language in the Perl Programming Language [Perl]
does not include a quantifier of the form S{,m}, since it is logically
equivalent to S{0,m}. We have, therefore, left this logical possibility out of
the regular expression language defined by this specification.

It may be necessary to fix the spec. Raised bug #5778.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 20 June 2008 14:49:30 UTC