X
Xah Lee
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
(e-mail address removed)
∑ http://xahlee.org/
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
(e-mail address removed)
∑ http://xahlee.org/