Python: get list indexes using regular expression?
<p>In Python, how do you get the position of an item in a list (using <code>list.index</code>) using fuzzy matching?</p>

<p>For example, how do I get the indexes of all fruit of the form <code>*berry</code> in the following list?</p>

<pre><code>fruit_list = ['raspberry', 'apple', 'strawberry']
# Is it possible to do something like the following?
berry_fruit_at_positions = fruit_list.index('*berry') 
</code></pre>

<p>Anyone have any ideas?</p>
