egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

regexp and string trim [Resolved]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
zigana
Voice


Joined: 26 Jul 2007
Posts: 7

PostPosted: Thu Jul 26, 2007 12:21 pm    Post subject: regexp and string trim [Resolved] Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Jul 26, 2007 2:41 pm    Post subject: Reply with quote

That's good enough.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
zigana
Voice


Joined: 26 Jul 2007
Posts: 7

PostPosted: Thu Jul 26, 2007 7:15 pm    Post subject: Reply with quote

OK Cheers I shall leave it at that. Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber