This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: 'r[/]*', str, re.MULTILINE | re.DOTALL Won't match // in a string in Python3.6.8
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: yanioaioan
Priority: normal Keywords:

Created on 2019-11-26 11:40 by yanioaioan, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (1)
msg357492 - (view) Author: Yan (yanioaioan) Date: 2019-11-26 11:40
str="//"
matches = re.finditer('r[/]*', str, re.MULTILINE | re.DOTALL)
for match in matches:
    print(match.group(0))

The above will match double forward slash in Python2.7.15  but NOT in Python3.6.8.
History
Date User Action Args
2022-04-11 14:59:23adminsetgithub: 83096
2019-11-26 11:58:05yanioaioansetstatus: open -> closed
resolution: not a bug
stage: resolved
2019-11-26 11:40:34yanioaioancreate