Returns the index of the first case-insensitive substring match of pattern in text, or -1 if pattern is not a substring. Returns 0 for an empty pattern.
pattern
text
-1
0
Returns the index of the first case-insensitive substring match of
patternintext, or-1ifpatternis not a substring. Returns0for an empty pattern.