There are some search and replace functions operations in strings as given below:-
1.) find():- The find() function returns the index value of the string where the substring is found between start index and end index.start index and end index is optional parameter.
1.) find():- The find() function returns the index value of the string where the substring is found between start index and end index.start index and end index is optional parameter.
- If substring is present in given string then this function returns the index of the first occurrence of the substring.
- If the substring is not exist inside the string then it returns -1 index