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.
Old posts that have not been replied to for several years.
g
gerkes
Post
by gerkes » Tue Mar 30, 2004 1:29 am
Let's say i have this string(1word) (~
xxmcx@egghelp.org )
How would I go about removing the ( & ) & @, then putting the ident and hostmask into 2 different variables?
Xpert
Halfop
Posts: 88 Joined: Mon Mar 08, 2004 7:03 am
Post
by Xpert » Tue Mar 30, 2004 4:48 am
You can use 'split':
Code: Select all
set host "[split ~xxmcx@egghelp.org @]"
set userident "[lindex $host 0]"
set userhost "[lindex $host 1]"
Xpert.
g
gerkes
Post
by gerkes » Tue Mar 30, 2004 5:13 am
THANK YOU! i was searching the forums and was progressing, your lines seems a lot simpler and more efficient than what i have in hand right now. thanks once again
Xpert
Halfop
Posts: 88 Joined: Mon Mar 08, 2004 7:03 am
Post
by Xpert » Tue Mar 30, 2004 6:00 am
Your welcome
Xpert.
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Tue Mar 30, 2004 11:55 am
Use "trim" if you want to get rid of the ~ thing
Once the game is over, the king and the pawn go back in the same box.