[issue38016] Results with re.sub and re.replace is giving different results
hongweipeng
report at bugs.python.org
Tue Sep 3 03:15:55 EDT 2019
hongweipeng <hongweichen8888 at sina.com> added the comment:
It's because ```re.sub('0.072', '72.0', newStringUpdated)``` match '03072' in -0.043'03072'77670375.
`.` can match any character in regular expression.So I don't think that's a issue.
----------
nosy: +hongweipeng
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38016>
_______________________________________
More information about the Python-bugs-list
mailing list