I have a list with values say list =[Copper, Wood, Glass, Metal] string = 'Wood table with small glass center,little bit of metal'
I need to search if specific values are available in my string but should ignore the least prominent values like glass and metal using nearby words. I tried re.findall and I am getting output as Wood, Glass, Metal. How to ignore 'Glass' and 'Metal' in this case by using nearby keywords such as 'small' and 'little'.
Expected Output = [Wood]