Where can be a problem?
Lad
python at hope.cz
Fri Aug 12 09:39:05 EDT 2005
Peter,
I tried exactly this
########
import re
Results=[]
data1='<a href="detailaspxmember=15015&mode=advert" </a><a
href="detailaspxmember=15016&mode=advert" </a><a
href="detailaspxmember=15017&mode=advert" </a>'
ID = re.compile(r'^.*=(\d+)&.*$',re.MULTILINE)
Results=re.findall(ID,data1)
print "Results are= ",Results
#########
and received
Results are= ['15017']
Not all numbers
What exactly did you get?
Thanks.
L.
More information about the Python-list
mailing list