Project

General

Profile

$matchtokcs » History » Version 2

Per Amundsen, 08/10/2015 05:27 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$matchtokcs(text,string,N,C)*
4
5
Returns tokens that contain the specified string.
6
7
_[[$matchtokcs]] is case-sensitive, see [[$matchtok]] for case-insensitive version._
8
9
*Parameters*
10
11
text - The text to tokenize.
12
string - Search string.
13
N - If N is 0, returns number of matches, otherwise returns the Nth match.
14
C - The "ASCII":http://www.asciitable.com/ value to tokenize by.
15
16
*Example*
17
18
<pre>
19
; Returns number of matches
20 2 Per Amundsen
//echo -ag $matchtokcs(onE two thrEe, E, 0, 32)
21 1 Per Amundsen
22
; Returns the second match
23 2 Per Amundsen
//echo -ag $matchtokcs(onE two thrEe, E, 2, 32)
24 1 Per Amundsen
</pre>