Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-06-16
05:00 • Closed ticket [550797ffff]: Substitute inside switch -regexp body plus 7 o... artifact: 555762bca3 user: dkf
2003-11-13
05:59 • Ticket [550797ffff]: 1 change artifact: 9f3063f68e user: dgp
2002-05-01
04:47 • Ticket [550797ffff]: 1 change artifact: 181d0f8039 user: dkf
2002-04-30
21:38 • New ticket [550797ffff]. artifact: a940d27bad user: dkf

Substitute inside [switch -regexp] body

Closed / Accepted550797ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 22 years ago
Descriptionplain2002-04-30 21:38:57
It would be nice if it was possible to pick matched
strings (or the submatches) when using [switch
-regexp]. At the moment, you need to rematch the
regular expression with [regexp] to get what was
matched, which is distinctly inefficient.
dkf Ticket [550797ffff]: 1 change [History diff]2002-05-01 04:47:49
dgp Ticket [550797ffff]: 1 change [History diff]2003-11-13 05:59:50
dkfplain2004-06-16 05:00:50
Logged In: YES 
user_id=79902

Subsumed by TIP#75 which is implemented in Tcl 8.5
Log in (anonymous is fine) to add a comment.