[issue12130] regex 0.1.20110514 findall overlapped not working with 'start of string' expression

Julian report at bugs.python.org
Sat May 21 00:47:52 CEST 2011


New submission from Julian <jcerruti at gmail.com>:

Trying to use regex 0.1.2011051 with the overlapped=True feature

It works great, unless I have the 'start of string' (caret) character in my regular expression:


>>> regex.findall(r"a.*b","abadalaba",overlapped=True)
['abadalab', 'adalab', 'alab', 'ab']
>>> regex.findall(r"^a.*b","abadalaba",overlapped=True)
['abadalab']

----------
components: Regular Expressions
messages: 136405
nosy: jcerruti
priority: normal
severity: normal
status: open
title: regex 0.1.20110514 findall overlapped not working with 'start of string' expression
versions: Python 2.7

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


More information about the Python-bugs-list mailing list