Project

General

Profile

$remtok » History » Revision 3

Revision 2 (Per Amundsen, 08/10/2015 06:02 AM) → Revision 3/4 (Per Amundsen, 07/27/2020 01:11 AM)

_Added in 1.9.0_ 

 *$remtok(text,token,N,C)* 

 Removes the Nth matching token from text. 

 _[[$remtok]] is case-insensitive, see [[$remtokcs]] for case-sensitive version._ 

 *Parameters* 

 text - The text to tokenize. 
 token - Token to remove. add. 
 N - If N = 0, all matching tokens, otherwise the Nth token. 
 C - The "ASCII":http://www.asciitable.com/ value to tokenize by. 

 *Example* 

 <pre> 
 ; Remove the first 'b' token. 
 //echo -ag $remtok(a.b.c.d,b,1,46) 

 ; Remove all 'b' tokens. 
 //echo -ag $remtok(a.b.b.b,b,0,46) 
 </pre>