mIRC Home    About    Download    Register    News    Help

Print Thread
#97934 18/09/04 10:48 PM
Joined: Apr 2004
Posts: 73
Z
Babel fish
OP Offline
Babel fish
Z
Joined: Apr 2004
Posts: 73
Hey everyone,

I would like to see a way to return everything BUT certain characters in a string, for instance...

$nomid(thisisanexample,3,4) which would return thanexample
or,
$nomid(howdy!,2,3) which would return hy!

-Zelda4ever
aka "The Big 'Z'"


/tokenize 32 $gettok($1-,1-,32)
#97935 18/09/04 11:02 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
You can do it by creating an alias that for example, if you use the format; $mid(text,[color:red]3,3)[/color] will split it into 2 $mid().

One that gets from, 1-2, and the other that gets from 6 on, alternatively use, $left().


alias nomid { return $left($1,$calc($2 - 1)) $+ $mid($1,$calc($2 + $3)) }

something like that, works just like $mid().

Eamonn.


Link Copied to Clipboard