I have a list of news titles... I want to do a quick If statement to see if the string as a word in it... for example
if my string has the word plane in it then do this
else if string has horse in it do this....
how can I search a string for a word?
There are a number of string functions and regular expression functions that might be used, but the precise solution would depend on the precise requirements. For instance, is the word search to be case-sensitive or not? If looking for the word "plane", should it only match for the complete word "plane", or also match if it finds "planes" or "airplane"?