New submission from Robert: When running the command
re.sub(r'X.', '+', '-X\n-', re.DOTALL) you get '-X\n-' instead of '-+-'. Curiously findall works correctly: re.findall(r'X.', '-X\n-', re.DOTALL) => ['X\n'] ---------- components: Regular Expressions messages: 298316 nosy: ezio.melotti, mrabarnett, mrh1997 priority: normal severity: normal status: open title: re.sub() does not work correctly on '.' pattern and \n type: behavior versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30927> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com