[New-bugs-announce] [issue42550] re库匹配问题
ye andy
report at bugs.python.org
Wed Dec 2 21:38:33 EST 2020
New submission from ye andy <andy.ye.jx at gmail.com>:
import re
a = """0xd26935a5ee4cd542e8a3a7e74fb7a99855975b59\n"""
eth_re = re.compile(r'^0x[0-9a-fA-F]{40}$')
print(eth_re.match(a))
print(len(a)) # 长度43
----------
components: Library (Lib)
messages: 382367
nosy: andy.ye.jx
priority: normal
severity: normal
status: open
title: re库匹配问题
type: security
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42550>
_______________________________________
More information about the New-bugs-announce
mailing list