In Python, how do you get the position of an item in a list (using list.index) using fuzzy matching?
For example, how do I get the indexes of all fruit of the form *berry in the following list?
fruit_list = ['raspberry', 'apple', 'strawberry']
# Is it possible to do something like the following?
berry_fruit_at_positions = fruit_list.index('*berry')
Anyone have any ideas?