Artifacts Associated With Ticket 550799ffffffffff
Ticket change [26cc6aa698] (rid 88412) by dkf on 2002-04-30 21:47:10:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
It would be nice if there was a switch to [regsub] to make it automatically pass the strings it is substituting through, say, Tcl_SubstObj() before substitution. At the moment you need to perform several stages of substitution, first hiding all significant characters in the input string, then substituting things (usually looking like command substitutions) which describe what you actually want to change, and finally passing the result through [subst] to convert the substitutions into their actual value. Sure this works, but it is not a technique that is clear to anyone other than a Tcl guru, and being able to perform the substitution on strings as they are being replaced by [regsub] would be much clearer (especially as it would also allow the removal of the pre-filtering stage as well.) Naturally, if this was done some care would need to be taken with ensuring that those parts derived from the string being matched were properly quoted as well, but this idea already exists in principle in Tk (in binding script substitutions) so it won't be foreign to users...
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dkf"
- subsystem initialized to: "43. Regexp"
- title initialized to: "Evaluation of substitutions in [regsub]"
- type initialized to: "RFE"
Ticket change [c00a65c1f5] (rid 102344) by hobbs on 2003-11-12 07:24:53:
- closedate changed to: "2003-11-12T00:24:53"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 dup 652953
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "hobbs"