W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2004

[F&O] IBM-FO-105: \0 should be prohibitied as a back reference in regular expressions

From: Henry Zongaro <zongaro@ca.ibm.com>
Date: Tue, 17 Feb 2004 20:43:49 -0500
To: public-qt-comments@w3.org
Message-ID: <OF252F79A2.586EA0ED-ON85256E3B.007B24D6-85256E3E.00098185@ca.ibm.com>

[My apologies that these comments are coming in after the end of the Last 
Call comment period.]


In the last bulleted list, the first bullet describes the concept of 
captured substrings and how they are identified numerically, with the 
entire string matched being identified by the number zero.  The second 
bullet in the list describes the syntax for back references, used to refer 
to previously captured substrings within the regular expression.

Neither this bullet nor the syntax for back references defined in [23] and 
[23a] appears to prohibit \0 from appearing as a back reference within the 
regular expression, but clearly that would make no sense.  This 
restriction needs to be stated explicitly, or production [23a] needs to be 
modified to prevent \0 from being a syntactically correct back reference.


[Speaking on behalf of reviewers from IBM.]
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
Received on Tuesday, 17 February 2004 20:43:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:18 UTC