parsing a file name

Chris Mellon arkanes at gmail.com
Fri Jan 12 19:16:31 CET 2007


On 12 Jan 2007 09:16:51 -0800, CSUIDL PROGRAMMEr <syedamjad_a at yahoo.com> wrote:
> I have a filename
> cairo-2.3.4.src.rpm
> Is there any way i can only get 2.3.4 from this file name
> thanks
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

I'm trying to think of a good reason to extract the version from the
filename instead of using RPM to get the real version from the
metadata and I can't come up with one.



More information about the Python-list mailing list