How do I find possible matches using regular expression?

Andy icetortoise at gmail.com
Thu Nov 23 03:58:28 EST 2006


Hi there,

I'm trying to do some predicting work over user input, here's my
question:

for pattern r'match me', the string 'no' will definitely fail to match,
but 'ma' still has a chance if user keep on inputting characters after
'ma', so how do I mark 'ma' as a possible match string?

Thanks a lot,

Andy




More information about the Python-list mailing list