Docs Menu
API Developer Guide / middleware / pub / string / indexOf

Service: indexOf

This service will return the position of the string to be searched.

Input Parameter:

Name Type Description
string: String Main String
substring: String String to be searched

Output Parameter:

Name Type Description
index: Integer Position of the searched string in the main string.