Forum Discussion
nitass_89166
Noctilucent
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_89166
Aug 29, 2013Noctilucent
yes, that is correct. :-)