regexp problem in Python

Fabio Z Tessitore fabioztessitore at libero.it
Sat Aug 4 19:51:21 CEST 2007


Il Fri, 03 Aug 2007 14:41:52 -0700, Ehsan ha scritto:

maybe you can use this to solve your prob:

myurl = "http://www.2shared.com/download/1716611/e2000f22/
Jadeed_Mlak14.wmv?tsid=20070803-164051-9d637d11"

if myurl.startswith('http') and ('wmv' in myurl or '3pg' in myurl):
	# myurl is the complete address you want
	print myurl

#####################################

about re, I'm waiting for someone enlightening all us,
bye
Fabio



More information about the Python-list mailing list