W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2006

[Bug 4106] [F+O] regex syntax: position of backreference

From: <bugzilla@wiggum.w3.org>
Date: Fri, 22 Dec 2006 10:50:11 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1Gxhyd-0008Pb-Su@wiggum.w3.org>

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





------- Comment #1 from abel.online@xs4all.nl  2006-12-22 10:50 -------
Perhaps it's good to consider what Perl does here:

Perl handles backreferences inside a character class as octal escapes:
perl /[\7]/ matches U+07
perl /[\1]/ matches U+01
perl /[\11]/ matches the tab U+09

outside a character class, an octal escape must be of at least two digits to be
treated as an octal escape. Otherwise, if it does not match a parenthesis, it
will raise a runtime error. (which I still believe is the better approach and
should've been adopted by XSLT, but it's too late to change the specs).

Of course, in XSLT there is no such thing as an octal escape, it uses entity
references.
Received on Friday, 22 December 2006 10:50:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:16 UTC