Monday, February 21, 2011

What property returns the regular expression used when re.compile was called?

def foo ():
   x = re.compile('^abc')

   foo2(x)

def foo2(x):

   # How do I get x to return '^abc'?
   logging.info('x is ' + x.???)
From stackoverflow

0 comments:

Post a Comment