[Tutor] getting original pattern from regular expression object
roadierich at googlemail.com
Tue Apr 20 04:33:03 CEST 2010
On 20 April 2010 03:25, Tino Dai <oberoc at gmail.com> wrote:
> If I have:
> import re
> is there a way to get the original pattern of foo from the object a?
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
>>> import re
>>> a = re.compile("foo")
Rich "Roadie Rich" Lovely
Just because you CAN do something, doesn't necessarily mean you SHOULD.
In fact, more often than not, you probably SHOULDN'T. Especially if I
10 re-discover BASIC
30 PRINT "Profit"
40 GOTO 10
More information about the Tutor