[Tutor] regExpress

Eric Walker ewalker at micron.com
Thu Oct 6 01:52:53 CEST 2005

If I have something like this:
import re
sample = 'myboss:isbad'
express = re.compile('(.*):(.*))
answer = re.match(express,sample)

how do I get it to  tell me if it was a match or not. I have tried 
answer.match . It just gives me an object pointer or something.

Python Newbie...

More information about the Tutor mailing list