strIndexOf(
const string, // string to search in
const patt, // pattern searched
[const start, // start position in string (default=1)
const ignorecase]) // case independent search (default=false)
Searches an occurrence of patt in string. If the pattern is found,
the 1-based index of the first character is returned. If the pattern is not found,
0 is returned.
Examples:
strIndexOf('hello world', 'o'); // 5
strIndexOf('hello world', 'o', 6); // 8
strIndexOf('hello world', 'x'); // 0
|