no back references in regexp
Closed / Fixed1857126fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-12-23 18:54:25
I have some problems with my back references in Tcl85
Here I use the example from current Tcl 8.5 documentation
[artur@localhost tests]$ /opt/tcl8412/bin/tclsh8.4
% regexp {([bc])\1} bb
1
% [artur@localhost tests]$ /opt/tcl85/bin/tclsh8.5
% regexp {([bc])\1} bb
couldn't compile regular expression pattern: invalid backreference
number
%
dkf Ticket [1857126fff]: 1 change
[History diff]2007-12-24 02:33:05
hobbsplain2007-12-24 03:41:31
Logged In: YES
user_id=72656
Originator: NO
(Tcl) 52 % info patch
8.5.0
(Tcl) 53 % regexp -inline {([bc])\1} bb
bb b
Using AT 8.5.0 on XP
hobbsplain2007-12-24 04:31:03
Logged In: YES user_id=72656 Originator: NO * generic/tclCompCmds.c (TclCompileRegexpCmd): TCL_REG_NOSUB cannot * tests/regexp.test (regexp-22.2):be used because it * tests/regexpComp.test:[Bug 1857126]disallows backrefs.
Log in (anonymous is fine) to add a comment.