Standard LibraryTypesstringMethodsindexOn this pageindex Method of string. index(const string value) -> integer Returns the index of the first occurrence of the specified value in the container. Parameters value: The value to find.