Hi...I am really stuck. May I have some help???

What would be some reasons as to why a programmer may want to search a string? How can the search() function assist with this?