Re: a regual expression problem

2008-11-30 Thread Roy Smith
In article <[EMAIL PROTECTED]>, lookon <[EMAIL PROTECTED]> wrote: > I have a url of image, and I want to get the filename and extension of > the image. How to write in python? > > for example, the url is http://a.b.com/aaa.jpg?version=1.1 > > how can I get aaa and jpg by python? Despite the s

Re: a regual expression problem

2008-11-30 Thread Jon Clements
On Nov 30, 9:10 am, lookon <[EMAIL PROTECTED]> wrote: > I have a url of image, and I want to get the filename and extension of > the image. How to write in python? > > for example, the url ishttp://a.b.com/aaa.jpg?version=1.1 > > how can I get aaa and jpg by python? Something like... >>> from url

Re: a regual expression problem

2008-11-30 Thread Arnaud Delobelle
Arnaud Delobelle <[EMAIL PROTECTED]> writes: > lookon <[EMAIL PROTECTED]> writes: > >> I have a url of image, and I want to get the filename and extension of >> the image. How to write in python? >> >> for example, the url is http://a.b.com/aaa.jpg?version=1.1 >> >> how can I get aaa and jpg by py

Re: a regual expression problem

2008-11-30 Thread Arnaud Delobelle
lookon <[EMAIL PROTECTED]> writes: > I have a url of image, and I want to get the filename and extension of > the image. How to write in python? > > for example, the url is http://a.b.com/aaa.jpg?version=1.1 > > how can I get aaa and jpg by python? Without res: >>> url=" http://a.b.com/aaa.jpg?v

a regual expression problem

2008-11-30 Thread lookon
I have a url of image, and I want to get the filename and extension of the image. How to write in python? for example, the url is http://a.b.com/aaa.jpg?version=1.1 how can I get aaa and jpg by python? -- http://mail.python.org/mailman/listinfo/python-list