[issue6797] When Beginning Expression with Lookahead Assertion I get no Matches

Matthew Barnett report at bugs.python.org
Sat Aug 29 14:15:39 CEST 2009


Matthew Barnett <python at mrabarnett.plus.com> added the comment:

"(?![a-z0-9])" is a negative lookahead, so "(?![a-z0-9])0" is saying
that the next character shouldn't be any of [a-z0-9], yet it should
match "0". Hence, no matches.

----------
nosy: +mrabarnett

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6797>
_______________________________________


More information about the Python-bugs-list mailing list