I have a problem where I am trying to search for a substring in string. That substring may or may not be in the string.
str = \"hello how are you?\" substr =
the best way is indexof, regex is slower