Message179116
I'm surprised that this does not find any matches:
import re
r = re.compile("^abc")
s = "0123abcxyz"
for i in range(0,len(s)):
print(i, r.search(s, i))
I would have expected the i==4 case to match ?
(This is on:
Python 2.7.3 (default, Dec 14 2012, 02:46:02)
[GCC 4.2.1 Compatible FreeBSD Clang 3.2 (branches/release_32 168974)] on freebsd10
) |
|
Date |
User |
Action |
Args |
2013-01-05 09:21:55 | bsdphk | set | recipients:
+ bsdphk, ezio.melotti, mrabarnett |
2013-01-05 09:21:55 | bsdphk | set | messageid: <1357377715.09.0.558139465053.issue16870@psf.upfronthosting.co.za> |
2013-01-05 09:21:55 | bsdphk | link | issue16870 messages |
2013-01-05 09:21:54 | bsdphk | create | |
|