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

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