I have a list of string that contains values like this:
- 'abc_def'
- '{xyz_abc}'
- '{www-ABC-zzz}'
I wish to find partial text match in my list using the any keyword:
result = any('abc' in w for w in list)
How can I find all the matching while ignoring upper case of lower case and yet find partial text match?
anyare about different thingsresult = any("abc" in w.lower() for w in list1)