wildcard match with list.index()

Mr.SpOOn mr.spoon21 at gmail.com
Mon Nov 10 11:46:56 EST 2008


Hi,
is there any way to search elements in a list using wildcards?

I have a list of various elements and I need to search for elements
starting with 'no', extract them and put in a new list.
I was thinking about something like:

mylist.index('no*')

Of course this doesn't work.



More information about the Python-list mailing list