Forum Discussion
nitass
Employee
is tcl scan useful?
e.g.
% set test1 "10.10.10.10%1"
10.10.10.10%1
% set test123 "10.10.10.10%123"
10.10.10.10%123
% scan $test1 {%[^%%]%%%d} a b
2
% put $a
10.10.10.10
% put $b
1
% scan $test123 {%[^%%]%%%d} a b
2
% put $a
10.10.10.10
% put $b
123
%
nitass
Aug 29, 2013Employee
oops sorry, i misread. scan command does not use regex.