trim will only remove leading and trailing spaces, best will probably be if you first just [split $list] and then you will get a few empty list entrys which can be delted within a for loop and lreplace and all left is a clean, safe list of the names.
De Kus wrote:trim will only remove leading and trailing spaces, best will probably be if you first just [split $list] and then you will get a few empty list entrys which can be delted within a for loop and lreplace and all left is a clean, safe list of the names.
it takes care of arbitrary number of spaces in-between, and [string trim] takes care of leading and trailing spaces - just what that guy needs, nothing more, nothing less
sorry, didnt pay too much attention to the " {1,}" expression, since it never worked that way I liked . my regsubs with RE never replaced anything . but this one works, sorry for bother.