look-behind fixed width issue (package re)
Gerhard Häring
gh at ghaering.de
Fri Oct 24 08:44:33 EDT 2008
MRAB wrote:
> On Oct 24, 6:29 am, Peng Yu <PengYu... at gmail.com> wrote:
>> Hi,
>>
>> It seem that the current python requires fixed-width pattern for look-
>> behind. I'm wondering if there is any newly development which make
>> variable-width pattern available for look-behind.
>>
> The re module is currently being worked on, but unfortunately it won't
> appear until Python 2.7. Variable-width look-behind is one of the
> improvements.
Most probably a backport to Python 2.6 or even 2.5 under a different
module name like re_ng wouldn't be too difficult to do for anybody that
needs the new functionality and knows a bit about building extension
modules.
-- Gerhard
More information about the Python-list
mailing list