Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70602 > unrolled thread
| Started by | Robin Becker <robin@reportlab.com> |
|---|---|
| First post | 2014-04-25 17:30 +0100 |
| Last post | 2014-04-25 17:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
possible bug in re expression? Robin Becker <robin@reportlab.com> - 2014-04-25 17:30 +0100
| From | Robin Becker <robin@reportlab.com> |
|---|---|
| Date | 2014-04-25 17:30 +0100 |
| Subject | possible bug in re expression? |
| Message-ID | <mailman.9498.1398443459.18130.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web