Go to the first, previous, next, last section, table of contents.


Searching for substrings

Searching for substrings is done with index:

index(string, substring)

which expands to the index of the first occurrence of substring in string. The first character in string has index 0. If substring does not occur in string, index expands to `-1'.

index(`gnus, gnats, and armadillos', `nat')
=>7
index(`gnus, gnats, and armadillos', `dag')
=>-1

The builtin macro index is recognized only when given arguments.


Go to the first, previous, next, last section, table of contents.