I have a string something like
No People,Day,side view,looking at camera,snow,mountain,tranquil scene,tranquility,Night,walking,water,Two People,looking Down
And I have a table Group_words
Group
No People,One Person,Two Person,Three Person,Four Person,five person,medium group of people,large group of people,unrecognizable person,real people
Day,dusk,night,dawn,sunset,sunrise
looking at camera,looking way,looking sideways,looking down,looking up
I want to check every comma separated word with table Group_words
and find the wrong combination.
For the above string result should be : "No People,Day,side view,looking at camera,snow,mountain,tranquil scene,tranquility,walking,water"
Night
is removed becauseDay
is available in the string.Two People
is removed becauseNo People
is available in the string.looking Down
is removed becauselooking at camera
is available in the string.
I know its to complicated but simply I want to remove the not matching words from sting which is available into table
Group_words
.
Help is much appreciated. Thanks in advance .