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.

replace character

Old posts that have not been replied to for several years.
Locked
b
b_raven
Voice
Posts: 6
Joined: Tue Jul 20, 2004 1:43 am

replace character

Post by b_raven »

anyone know a quick way to replace every instance of a character in a string with another?
in my case space with _
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Code: Select all

set string [string map {" " "_"} $string]
Locked