Project

General

Profile

$matchtokcs » History » Revision 2

Revision 1 (Per Amundsen, 08/10/2015 05:27 AM) → Revision 2/3 (Per Amundsen, 08/10/2015 05:27 AM)

_Added in 1.9.0_ 

 *$matchtokcs(text,string,N,C)* 

 Returns tokens that contain the specified string. 

 _[[$matchtokcs]] is case-sensitive, see [[$matchtok]] for case-insensitive version._ 

 *Parameters* 

 text - The text to tokenize. 
 string - Search string. 
 N - If N is 0, returns number of matches, otherwise returns the Nth match. 
 C - The "ASCII":http://www.asciitable.com/ value to tokenize by. 

 *Example* 

 <pre> 
 ; Returns number of matches 
 //echo -ag $matchtokcs(onE $matchtokcs(one two thrEe, E, three, e, 0, 32) 

 ; Returns the second match 
 //echo -ag $matchtokcs(onE $matchtokcs(one two thrEe, E, three, e, 2, 32) 
 </pre>