regexp problem in Python

Dave Hansen iddw at hotmail.com
Fri Aug 3 18:36:05 EDT 2007


On Aug 3, 4:41 pm, Ehsan <ehsan.khod... at gmail.com> wrote:
> I want to find "http://www.2shared.com/download/1716611/e2000f22/
[...]
> I use this pattern :
> "http.*?\.(wmv|3gp).*""
>
> but it returns only 'wmv' and '3gp' instead of "http://www.2shared.com/
> download/1716611/e2000f22/Jadeed_Mlak14.wmv?
> tsid=20070803-164051-9d637d11"
>
> what can I do? what's wrong whit this pattern? thanx for your comments

Just a guess, based on too little information: Try "(http.*?\.(wmv|
3gp).*)"

Regards,

   -=Dave




More information about the Python-list mailing list