[New-bugs-announce] [issue6797] When Beginning Expression with Lookahead Assertion I get no Matches
Jonathan Windle
report at bugs.python.org
Fri Aug 28 23:49:58 CEST 2009
New submission from Jonathan Windle <jonathanwindle at gmail.com>:
Example Code:
import re
re.findall(r"(?![a-z0-9])0(?![a-z0-9])", "a0a 0 0 b0b")
The above code returns an empty list. I expect to get ['0', '0'] returned.
If I remove "(?![a-z0-9])" from the beginning of the expression string
findall returns values as expected.
----------
components: Regular Expressions
messages: 92046
nosy: jwindle
severity: normal
status: open
title: When Beginning Expression with Lookahead Assertion I get no Matches
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6797>
_______________________________________
More information about the New-bugs-announce
mailing list