Top

$multiremtok

+ 0 likes
Please Register to submit score.
Average Score  6.0
Scores Submitted  1
Date Added  Nov 14, 2007
Last Updated  Nov 14, 2007

Introduction

Snippet that removes multiple tokens from a string of text. An enhancement to $remtok.

Grab the Code

Comments

  (5)  RSS
SpotRedDog
Comments: 84
 
mIRC Snippet:  $multiremtok
Posted on Nov 14, 2007 5:51 pm
Nice although I don't understand how to use it but it looks nice. WTG!!!
brinxy
Comments: 30
 
mIRC Snippet:  $multiremtok
Posted on Nov 15, 2007 10:35 am
Thanks, it's quite simple if you're fluent in token identifiers:
Let's say I had the string "this is my string of tokens"...
Now if we typed up //echo -a $multiremtok(this is my string of tokens,1,2,32) would return "my string of tokens" Because it removed the first token, this, and the second token, is.

Any more questions you have feel free to ask and I'll be glad to help. Although this should have been covered in the comments I put into the snippet.
spitfire3292
Comments: 36
 
mIRC Snippet:  $multiremtok
Posted on Nov 15, 2007 10:35 pm
Very well done. It took me a second to figure out why you used regex until I looked back up at all the params that can be used. What I really like is how you can "ignore" a param with a certain specific phrase. Very clever and very well thought out to create very little room for error alphanumeric-param wise :P
brinxy
Comments: 30
 
mIRC Snippet:  $multiremtok
Posted on Nov 15, 2007 10:37 pm
Thanks spitfire3292.
APtrackz
Comments: 5
 
mIRC Snippet:  $multiremtok
Posted on Mar 28, 2008 1:31 am
I'm very late on this, but perhaps have it ignore the invalid param using /continue? It'd be great to implement this VS. stopping the entire process. Otherwise, fantastic work.

Please Register or Login to start posting comments.
Bottom