Python re module has methods flags and pattern. How to use these
exactly?
e.g. i tried
print patternObj.flag s()
and the error is some "int object is not callable".
newpattern=re.c ompile(ur'\w+', patternObj.flag s())
also bad.
similar error for patternObj.patt ern(). (and i suppose the same for
groupindex() )
thanks.
Xah
xah@xahlee.org
∑ http://xahlee.org/
exactly?
e.g. i tried
print patternObj.flag s()
and the error is some "int object is not callable".
newpattern=re.c ompile(ur'\w+', patternObj.flag s())
also bad.
similar error for patternObj.patt ern(). (and i suppose the same for
groupindex() )
thanks.
Xah
xah@xahlee.org
∑ http://xahlee.org/
Comment