| View previous topic :: View next topic |
| Author |
Message |
Failed Voice
Joined: 17 Aug 2009 Posts: 1
|
Posted: Mon Aug 17, 2009 9:10 am Post subject: Remove character |
|
|
Hi, everyone!
how can i remove the first character of a word?
Cya |
|
| Back to top |
|
 |
tomekk Master

Joined: 28 Nov 2008 Posts: 255 Location: Oswiecim / Poland
|
Posted: Mon Aug 17, 2009 9:28 am Post subject: |
|
|
| Code: | set a "word"
puts [string range $a 1 end] |
| Code: | set a "word"
regsub {[^.]} $a "" a
puts $a |
| Code: | set a "word"
set a [join [lrange [split $a {}] 1 end] ""]
puts $a |
| Quote: | [tomekk@zonk]:~# ./zonk.tcl
ord
ord
ord
|
|
|
| Back to top |
|
 |
|