Help for those learning Tcl or writing their own scripts.
-
pipo
- Voice
- Posts: 16
- Joined: Sat Nov 18, 2006 2:51 pm
Post
by pipo »
I have text like:
(blablablabla)
How can I filter out the last ")"
So the text will be:
(blablablabla
Thanks
-
tsukeh
- Voice
- Posts: 31
- Joined: Thu Jan 20, 2005 6:22 am
Post
by tsukeh »
filter out last char: string range $text 0 end-1
or
filter out ")" char(s) from right side: string trimright $text ")"