Re: regexp problem in Python

2007-08-07 Thread Ant
On Aug 3, 10:41 pm, Ehsan [EMAIL PROTECTED] wrote: ... what can I do? what's wrong whit this pattern? thanx for your comments Nothing. There's something wrong with the code you are using the regex with. Post it and we may be able to help. Like Lawrence has said, it's likely to be that you are

Re: regexp problem in Python

2007-08-06 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Ehsan wrote: 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's the actual Python code that uses this regexp? My

Re: regexp problem in Python

2007-08-04 Thread Sönmez Kartal
On 4 A ustos, 00:41, Ehsan [EMAIL PROTECTED] wrote: I want to find http://www.2shared.com/download/1716611/e2000f22/ Jadeed_Mlak14.wmv?tsid=20070803-164051-9d637d11 or 3gp instead of wmv in the text file like this : html some code function reportAbuse() { var windowname=abuse; var

Re: regexp problem in Python

2007-08-04 Thread Ehsan
On Aug 4, 1:22 pm, Sönmez Kartal [EMAIL PROTECTED] wrote: On 4 A ustos, 00:41, Ehsan [EMAIL PROTECTED] wrote: I want to find http://www.2shared.com/download/1716611/e2000f22/ Jadeed_Mlak14.wmv?tsid=20070803-164051-9d637d11 or 3gp instead of wmv in the text file like this : html

Re: regexp problem in Python

2007-08-04 Thread Fabio Z Tessitore
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

Re: regexp problem in Python

2007-08-04 Thread Sönmez Kartal
On 4 A ustos, 17:10, Ehsan [EMAIL PROTECTED] wrote: On Aug 4, 1:22 pm, Sönmez Kartal [EMAIL PROTECTED] wrote: On 4 A ustos, 00:41, Ehsan [EMAIL PROTECTED] wrote: I want to find http://www.2shared.com/download/1716611/e2000f22/ Jadeed_Mlak14.wmv?tsid=20070803-164051-9d637d11 or

regexp problem in Python

2007-08-03 Thread Ehsan
I want to find http://www.2shared.com/download/1716611/e2000f22/ Jadeed_Mlak14.wmv?tsid=20070803-164051-9d637d11 or 3gp instead of wmv in the text file like this : html some code function reportAbuse() { var windowname=abuse; var url=/abuse.jsp?link= + http://www.2shared.com/file/1716611/

Re: regexp problem in Python

2007-08-03 Thread Dave Hansen
On Aug 3, 4:41 pm, Ehsan [EMAIL PROTECTED] 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?

Re: regexp problem in Python

2007-08-03 Thread Ehsan
On Aug 4, 1:36 am, Dave Hansen [EMAIL PROTECTED] wrote: On Aug 3, 4:41 pm, Ehsan [EMAIL PROTECTED] 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