I need to trim the colon from a string that is set using a regex action but cannot get it to see the colon. Is there some other way to match the ":"? The end result should be the time without a colon in the middle.
########
event none
action 0.00 cli command "enable"
action 1.00 cli command "show clock"
action 2.00 gets $_cli_result
action 2.01 regexp "[0-9][0-9]:[0-9][0-9]" "$_cli_result" string
action 7.00 string trim "$string" ":"
action 7.05 puts "$_string_result"
action 7.06 puts "$string"
action 8.00 exit
rtrr#event man run clock
13:00
13:00
#########
Thanks,
Ian