| Functions for SCALARs or stringsFind a substring within a stringDaftar Isi - index STR,SUBSTR,POSITION
- index STR,SUBSTR
The index function searches for one string within another, but withoutthe wildcard-like behavior of a full regular-expression pattern match.It returns the position of the first occurrence of SUBSTR in STR ator after POSITION. If POSITION is omitted, starts searching from thebeginning of the string. POSITION before the beginning of the stringor after its end is treated as if it were the beginning or the end,respectively. POSITION and the return value are based at zero.If the substring is not found, index returns -1. |
| |
|