Skip to content
Tcl Source Code Artifact [26cc6aa698]
Login

Artifact [26cc6aa698]

Artifact 26cc6aa69840c15e76ce05ee6d5607dde0df1e99:

Ticket change [26cc6aa698] - New ticket [550799ffffffffff|550799ffff] <i>Evaluation of substitutions in [regsub]</i>. by dkf on 2002-04-30 21:47:10.
D 2002-04-30T21:47:10
J assignee nobody
J cmimetype text/plain
J comment It\swould\sbe\snice\sif\sthere\swas\sa\sswitch\sto\s[regsub]\sto\nmake\sit\sautomatically\spass\sthe\sstrings\sit\sis\nsubstituting\sthrough,\ssay,\sTcl_SubstObj()\sbefore\nsubstitution.\sAt\sthe\smoment\syou\sneed\sto\sperform\sseveral\nstages\sof\ssubstitution,\sfirst\shiding\sall\ssignificant\ncharacters\sin\sthe\sinput\sstring,\sthen\ssubstituting\nthings\s(usually\slooking\slike\scommand\ssubstitutions)\nwhich\sdescribe\swhat\syou\sactually\swant\sto\schange,\sand\nfinally\spassing\sthe\sresult\sthrough\s[subst]\sto\sconvert\nthe\ssubstitutions\sinto\stheir\sactual\svalue.\s\sSure\sthis\nworks,\sbut\sit\sis\snot\sa\stechnique\sthat\sis\sclear\sto\nanyone\sother\sthan\sa\sTcl\sguru,\sand\sbeing\sable\sto\sperform\nthe\ssubstitution\son\sstrings\sas\sthey\sare\sbeing\sreplaced\nby\s[regsub]\swould\sbe\smuch\sclearer\s(especially\sas\sit\nwould\salso\sallow\sthe\sremoval\sof\sthe\spre-filtering\sstage\nas\swell.)\n\nNaturally,\sif\sthis\swas\sdone\ssome\scare\swould\sneed\sto\sbe\ntaken\swith\sensuring\sthat\sthose\sparts\sderived\sfrom\sthe\nstring\sbeing\smatched\swere\sproperly\squoted\sas\swell,\sbut\nthis\sidea\salready\sexists\sin\sprinciple\sin\sTk\s(in\sbinding\nscript\ssubstitutions)\sso\sit\swon't\sbe\sforeign\sto\susers...
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter dkf
J subsystem 43.\sRegexp
J title Evaluation\sof\ssubstitutions\sin\s[regsub]
J type RFE
K 550799ffffffffffffffffffffffffffffffffff
U dkf
Z f856ecd5f2091182e727c00fb6bace4e