Georg Brandl <georg at python.org> added the comment: There is even more wrongness here: if you give flags inline in the pattern, they also show up in .flags (since they are global, at least in the current implementation). Suggested patch attached. ---------- keywords: +patch nosy: +georg.brandl Added file: http://bugs.python.org/file24840/regexflags.patch _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue14250> _______________________________________