[issue26895] regex matching on bytes considers zero byte as end
Tim Peters
report at bugs.python.org
Sat Apr 30 11:38:11 EDT 2016
Tim Peters added the comment:
Do note that `.match()` is constrained to match starting at the first byte. `.search()` is not (it can start matching at any position), and your example works fine if `.search()` is used instead.
This is all expected, and intended, and documented.
----------
nosy: +tim.peters
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26895>
_______________________________________
More information about the Python-bugs-list
mailing list