Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70602

possible bug in re expression?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:bug': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'translation': 0.12; '2.7': 0.14; 'fine.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:expression': 0.16; 'subject:possible': 0.16; 'header :User-Agent:1': 0.23; 'header:X-Complaints-To:1': 0.27; 'correct': 0.29; 'raise': 0.29; "doesn't": 0.30; 'code': 0.31; 'but': 0.35; 'whilst': 0.36; 'subject:?': 0.36; 'should': 0.36; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'skip:a 30': 0.61; 'received:109': 0.72
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Robin Becker <robin@reportlab.com>
Subject possible bug in re expression?
Date Fri, 25 Apr 2014 17:30:45 +0100
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 109.174.168.73
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.9498.1398443459.18130.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1398443459 news.xs4all.nl 2918 [2001:888:2000:d::a6]:46654
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:70602

Show key headers only | View raw


Whilst translating some javascript code I find that this

A=re.compile('.{1,+3}').findall(p)

doesn't give any error, but doesn't manage to find the strings in p that I want 
len(A)==>0, the correct translation should have been

A=re.compile('.{1,3}').findall(p)

which works fine.

should

re.compile('.{1,+3}')

raise an error? It doesn't on python 2.7 or 3.3.
-- 
Robin Becker

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

possible bug in re expression? Robin Becker <robin@reportlab.com> - 2014-04-25 17:30 +0100

csiph-web