$pos: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(No difference)
|
Latest revision as of 23:35, 11 April 2008
Returns a number indicating the position of the Nth occurrence of string in text.
$pos(text,string,N)
If N is zero, it returns the number of times string appears in text.
Note: You can use $poscs() for a case-sensitive version.
Example
$pos(hello there,e,1) returns 2
$pos(hello there,e,2) returns 9
$pos(hello there,a,1) returns $null