[issue34982] re.sub() different behavior in 3.7
New submission from purificant : A call to re.sub() returns different results in Python 3.7 compared to versions 3.6 / 3.5 and 2.7 Example behavior in 2.7 / 3.5 and 3.6: >>> re.sub(r'(([^/]*)(/.*)?)', r'\2.zip/\1/', 'example') 'example.zip/example/
[issue34982] re.sub() different behavior in 3.7
purificant added the comment: Great, thank you for explaining. My specific use case can be fixed by replacing * with + as per your suggestion. -- ___ Python tracker <https://bugs.python.org/issue34