Contents | Index | < Browse | Browse >
INDEX(<haystack>,<needle>, [<startpos>])
returns a number
The result is the character position within the string <haystack> of the
the first occurrence of the string <needle> or 0 if a match isn't found.
If <startpos> is specified, then the search proceeds from that position in
<haystack>.
The search is case sensitive.
Examples:
say index('Tied to Godot?','dot'); >>> 11
say index('Tied to Godot?','to'); >>> 6
Also see
Next: LASTPOS() | Prev: FIND() | Contents: Comparison functions