| View previous topic :: View next topic |
| Author |
Message |
zigana Voice
Joined: 26 Jul 2007 Posts: 7
|
Posted: Thu Jul 26, 2007 12:21 pm Post subject: regexp and string trim [Resolved] |
|
|
Hi I'm just trying to get a grip on TCL scripting.
| Code: | 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 |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
zigana Voice
Joined: 26 Jul 2007 Posts: 7
|
Posted: Thu Jul 26, 2007 7:15 pm Post subject: |
|
|
OK Cheers I shall leave it at that.  |
|
| Back to top |
|
 |
|