New submission from aixian le <[email protected]>:
the code is:
banner = "HTTP/1.0 404 Not Found\r\nDate: Mon, 17 Jun 2019 13:15:44
GMT\r\nServer: \r\nConnection: close\r\nContent-Type:
text/html\r\n\r\n<HTML><HEAD><TITLE>404 Not
Found</TITLE></HEAD>\r\n<BODY><H1>404 Not Found</H1>\r\nThe requested URL
/PSIA/index was not found on this server.\r\n</BODY></HTML>\r\n"
regex = "^HTTP/1\\.0 404 Not Found\\r\\n(?:[^<]+|<(?!/head>))*?<style>"
print("start")
regex_re = re.compile(regex)
print("start1")
regex_re.search(banner)
print("end")
when I execute this code ,python cannot finished.
----------
components: Regular Expressions
messages: 345953
nosy: aixian le, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: python re bug
type: crash
versions: Python 3.6
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue37327>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com