set a [list "1.2 1.3 1.6 1.7 1.8"]set x [regexp -all -inline {\S+} $a]foreach z $x { puts $z}
Standard input is empty
{1.2 1.3 1.6 1.7 1.8}
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!