Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
trim string
Forums
Active Threads
Search
Who's Online
Help
Print Thread
trim string
#
192821
11/01/08
12:07 PM
Joined:
Jan 2008
Posts: 1
A
acc15
OP
Mostly harmless
OP
acc15
Mostly harmless
A
Joined:
Jan 2008
Posts: 1
What method should I use to remove leading and trailing whitespaces from a string?
Copy Link to Clipboard
Re: trim string
acc15
#
192832
11/01/08
03:22 PM
Joined:
Jul 2006
Posts: 4,145
France
W
Wims
Hoopy frood
Wims
Hoopy frood
W
Joined:
Jul 2006
Posts: 4,145
France
$regsubex with a very nice pattern
Edit : i think i misunderstood what you mean.
Last edited by Wims;
11/01/08
03:35 PM
.
#mircscripting @
irc.swiftirc.net
== the best mIRC help channel
Copy Link to Clipboard
Re: trim string
acc15
#
192835
11/01/08
03:30 PM
Joined:
Feb 2006
Posts: 546
J
jaytea
Fjord artisan
jaytea
Fjord artisan
J
Joined:
Feb 2006
Posts: 546
you could use $gettok(string,1-,32) which also replaces multiple consecutive spaces with a single one
eg. $gettok(_a__b_____c__,1-,$asc(_)) = a_b_c
"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage