I have to chech if some parts of a string are included into a bigger string, that is for a text search, like:
let search = "Joe is a good boy"
let text = "One of the better boys is Joe"
How can i do see if the whole string or a part of it is included into text?
I tried to search.split()
looking for every splitted string, but it's not good: i would like to search at least if there are partial matches on strings like
"Joe", "Joe is", "Joee is a" ... etc.
Could you suggest me any function to do it?