regexp problem in Python

Ehsan ehsan.khoddam at gmail.com
Sat Aug 4 01:45:17 EDT 2007


On Aug 4, 1:36 am, Dave Hansen <i... at hotmail.com> wrote:
> 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

no, it doesn't work




More information about the Python-list mailing list