help with string

Old posts that have not been replied to for several years.
Locked
M
Moonshine
Voice
Posts: 19
Joined: Sat Aug 09, 2003 4:19 pm

help with string

Post by Moonshine »

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
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Code: Select all

set newstr [lindex [split $str -] end]
Locked