abstract:
re.search(list, 'th')
But nothing happens when I run this in the Python shell.
I'm using Python v2.5.4
Any ideas?
Thanks
Hi,
Im trying to search for a partial match within a list in Python.
For example
list = ['the', 'cat', 'bee']
Now I want to see if anything begins with 'th'
I've done some research and found some information on regular expression such as:
re.search(list, 'th')
But nothing happens when I run this in the Python shell.
I'm using Python v2.5.4
Any ideas?
Thanks |