Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
remove the last character of a string
Forums
Active Threads
Search
Who's Online
Help
Print Thread
remove the last character of a string
#
113574
06/03/05
12:12 PM
Joined:
Mar 2005
Posts: 1
P
puns
OP
Mostly harmless
OP
puns
Mostly harmless
P
Joined:
Mar 2005
Posts: 1
hi
say %hello is the string 'hello!', i want to remove the last character i.e. the ! how would i go about doing this.
thanks in advance
puns
Copy Link to Clipboard
Re: remove the last character of a string
#
113575
06/03/05
12:38 PM
Joined:
Feb 2004
Posts: 2,019
Leuven, Belgium
FiberOPtics
Hoopy frood
FiberOPtics
Hoopy frood
Joined:
Feb 2004
Posts: 2,019
Leuven, Belgium
//echo -a $left(hello!,-1)
Gone.
Copy Link to Clipboard
Re: remove the last character of a string
#
113576
06/03/05
12:39 PM
Joined:
Dec 2002
Posts: 145
Trois-Rivières, Canada
G
gemeau50
Vogon poet
gemeau50
Vogon poet
G
Joined:
Dec 2002
Posts: 145
Trois-Rivières, Canada
$left(%hello,-1)
Copy Link to Clipboard
Re: remove the last character of a string
#
113577
06/03/05
02:47 PM
Joined:
Aug 2004
Posts: 237
Belgium
L
LethPhaos
Fjord artisan
LethPhaos
Fjord artisan
L
Joined:
Aug 2004
Posts: 237
Belgium
is there a better way to script $right($1-,$calc($len($1-) - 3)) ?
Copy Link to Clipboard
Re: remove the last character of a string
#
113578
06/03/05
03:00 PM
Joined:
Feb 2004
Posts: 2,019
Leuven, Belgium
FiberOPtics
Hoopy frood
FiberOPtics
Hoopy frood
Joined:
Feb 2004
Posts: 2,019
Leuven, Belgium
U mean $mid($1-,4) ?
Gone.
Copy Link to Clipboard
Re: remove the last character of a string
#
113579
06/03/05
03:30 PM
Joined:
Dec 2002
Posts: 1,321
Georgia, USA
H
Hammer
Hoopy frood
Hammer
Hoopy frood
H
Joined:
Dec 2002
Posts: 1,321
Georgia, USA
$right($1-, -3)
DALnet: #HelpDesk and #
m[color:#FF0000]IR[color:#EEEE00]C
Copy Link to Clipboard
Re: remove the last character of a string
#
113580
06/03/05
03:43 PM
Joined:
Aug 2004
Posts: 237
Belgium
L
LethPhaos
Fjord artisan
LethPhaos
Fjord artisan
L
Joined:
Aug 2004
Posts: 237
Belgium
indeed $rigth($1-,-3)
I think I get the negative values thing now. Thanks!
Copy Link to Clipboard
Re: remove the last character of a string
#
113581
07/03/05
03:53 AM
Joined:
Feb 2004
Posts: 2,019
Leuven, Belgium
FiberOPtics
Hoopy frood
FiberOPtics
Hoopy frood
Joined:
Feb 2004
Posts: 2,019
Leuven, Belgium
Umm $right($1-,-3) is the same as $mid($1-,4) heh, just a tad shorter
Gone.
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
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Website
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