This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

[SOLVED] List in String?!

Help for those learning Tcl or writing their own scripts.
Post Reply
A
Access
Voice
Posts: 22
Joined: Sun Jun 04, 2006 6:31 am

[SOLVED] List in String?!

Post by Access »

I got the following list:

$list1

Code: Select all

{test.test.test-test {2006-09-21 12:17:07} mobo}
->

Code: Select all

set list2 [join $list1]
$list2

Code: Select all

test.test.test-test {2006-09-21 12:17:07} mobo

Now...how to extract the "{2006-09-21 12:17:07}" from the string?
Or other solutions?!

Thank you, very nice Forum!
Last edited by Access on Fri Sep 22, 2006 5:18 am, edited 1 time in total.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Code: Select all

set newvar [lindex $list1 1] 
A
Access
Voice
Posts: 22
Joined: Sun Jun 04, 2006 6:31 am

Post by Access »

rofl...i am so stupid^^

thx!
Post Reply