re module methods: flags(), pattern()
Xah Lee
xah at xahlee.org
Sun Apr 17 11:07:53 EDT 2005
Python re module has methods flags and pattern. How to use these
exactly?
e.g. i tried
print patternObj.flags()
and the error is some "int object is not callable".
newpattern=re.compile(ur'\w+',patternObj.flags())
also bad.
similar error for patternObj.pattern(). (and i suppose the same for
groupindex() )
thanks.
Xah
xah at xahlee.org
∑ http://xahlee.org/
More information about the Python-list
mailing list