Thanks feherke that was the problem, I needed that forth parameter. now Another question...
If I was using it in an array would it go like this;
set temp_str $temp_str\"[regsub -all , $rdata(cardholdername) "" cardholdername]\", .....or.....
set temp_str $temp_str\"[regsub -all ...
I'm very new to tcl and I'm trying to strip out any ','s that's embedded in a field. I'm using the regsub command and while testing it using the following, before putting it in my "real" script I keep getting this error...
set namer "john, smith"
> john, smith
regsub -all , " " $namer
> wrong...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.