[Tutor] getting original pattern from regular expression object

Tino Dai oberoc at gmail.com
Tue Apr 20 04:25:39 CEST 2010


If I have:

import re
a=re.compile('foo')

is there a way to get the original pattern of foo from the object a?

Thanks,
Tino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100419/f29b5a8f/attachment.html>


More information about the Tutor mailing list