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.

filter last character

Help for those learning Tcl or writing their own scripts.
Post Reply
p
pipo
Voice
Posts: 16
Joined: Sat Nov 18, 2006 2:51 pm

filter last character

Post by pipo »

I have text like:

(blablablabla)

How can I filter out the last ")"

So the text will be:

(blablablabla

Thanks
t
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 ")"
Post Reply