ok ... i try to get somthing like a substring.
for example the strings would be
This is one string_Peter
This is another string-Mary
i need to save Peter and Mary in a second string.
(from the end to "-" or "_")
Any idea ? TIA
Code: Select all
set newstr [lindex [split $str -] end]