Project

General

Profile

$deltok » History » Revision 2

Revision 1 (Per Amundsen, 08/10/2015 05:12 AM) → Revision 2/3 (Per Amundsen, 02/25/2017 04:07 PM)

_Added in 1.9.0_ 

 *$deltok(text,N-N2,C)* 

 Deletes the Nth token from text. 

 _N-N2 can be used to get a range of tokens, both numbers can be negative._ 
 _N- can be used to get all tokens from position N._ 

 *Parameters* 

 text - The text to tokenize. 
 N-N2 - The range of tokens or Nth token to delete. 
 C - The "ASCII":http://www.asciitable.com/ value to tokenize by. 

 *Example* 

 <pre> 
 ; Delete the 3rd token, result is 'a.b.d' 
 //echo -ag $deltok(a.b.c.d,3,46) 

 ; Delete the second to third token, result is 'a.d' 
 //echo -ag $deltok(a.b.c.d,2-3,46) 

 ; Delete all tokens from the second to end. 
 //echo -ag $deltok(a.b.c.d,2-,46) 
         
 </pre>