[issue22493] Deprecate the use of flags not at the start of regular expression

Ales Kvapil report at bugs.python.org
Sun May 27 04:48:51 EDT 2018


Ales Kvapil <aleskva at mailinator.com> added the comment:

Maybe there should be introduced some method to merge patterns as just piping patterns will not work:
pats = [r'(?m)^line.continues$', r'(?s)begin.*?end']
re.compile('|'.join(pats))

----------
nosy: +aleskva

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue22493>
_______________________________________


More information about the Python-bugs-list mailing list