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.

regexp and string trim [Resolved]

Help for those learning Tcl or writing their own scripts.
Post Reply
z
zigana
Voice
Posts: 7
Joined: Thu Jul 26, 2007 11:06 am

regexp and string trim [Resolved]

Post by zigana »

Hi I'm just trying to get a grip on TCL scripting.

Code: Select all

        if {[regexp -- (expression) $var newvar] == 1} {
           set newvar [string trimright $newvar <chars>]
Is there a ?better? way to combine those two lines, Or is it best to leave them seperate?
Last edited by zigana on Thu Jul 26, 2007 7:16 pm, edited 1 time in total.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

That's good enough.
z
zigana
Voice
Posts: 7
Joined: Thu Jul 26, 2007 11:06 am

Post by zigana »

OK Cheers I shall leave it at that. :)
Post Reply