How to find string values based on a string with multiple possibilities
Posted on 2009-07-10
What i want to do is the folowing.
I have a string called currentCodeLine this line is filled with a code line read from a source (a 4G language)
I also have a string called declaredVariables, containing: "iused inotused"
now i want to check if one or more of the words in the declaredVariables is in the currentCodeLine string.
I have tried to use the indexof, contains etc, but probably it can only search for a single word at a time.