I have a variable with three sets of rgb values tokenized with spaces and I'd like to get the $rgb() value for 1-3, 4-6, and 7-9. I tried to do a simple and short method but it isn't working for me so I'm stuck with a longer method.

; long version that works, three separate gettoks
$rgb($gettok(%clockcolors,1,32),$gettok(%clockcolors,2,32),$gettok(%clockcolors,3,32))

; short version that doesn't????
$rgb($replace($gettok(%clockcolors,1-3,32),$chr(32),$chr(44)))

I'm just perplexed at why the second doesn't work. The $replace() yields 0,197,255 which works when manually pasted into $rgb(), but it doesn't work in scripted form