• regsub -command

    From Roderick@hruodr@gmail.com to comp.lang.tcl on Fri Feb 20 16:09:30 2026
    From Newsgroup: comp.lang.tcl


    New new flag "-command" for regsub in Tcl9 is really wonderfull!

    Now that I see it, I miss it retroactively. :)

    But why took so much time to come to the idea?!

    R.
    --- Synchronet 3.21b-Linux NewsLink 1.2
  • From Harald Oehlmann@wortkarg3@yahoo.com to comp.lang.tcl on Sat Feb 21 13:05:37 2026
    From Newsgroup: comp.lang.tcl

    Am 20.02.2026 um 17:09 schrieb Roderick:

    New new flag "-command" for regsub in Tcl9 is really wonderfull!

    Now that I see it, I miss it retroactively. :)

    But why took so much time to come to the idea?!

    R.

    I agree that it is an essential feature.
    Well, it was added to TCL 9 7 years prior to its release.
    It slept due to no release action.
    But it was always there since 9 years. https://core.tcl-lang.org/tips/doc/trunk/tip/463.md

    And for me a very critical point is, that it is not in Androwish.
    Christian is willing to include it, if a patch is provided.

    Perhaps, the original branch may do the job: https://core.tcl-lang.org/tcl/vdiff?branch=tip-463

    Take care,
    Harald
    --- Synchronet 3.21b-Linux NewsLink 1.2