pattern match !

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Wed Jul 11 01:42:51 EDT 2007


On Wed, 11 Jul 2007 03:40:06 +0000, hari.siri74 wrote:

> Extract the application name with version from an RPM string like
> hpsmh-1.1.1.2-0-RHEL3-Linux.RPM, i require to extract hpsmh-1.1.1.2-0
> from above string. Sometimes the RPM string may be hpsmh-1.1.1.2-RHEL3-
> Linux.RPM.

Thank you for sharing.

The answer to your problem is here: 
http://tinyurl.com/anel


-- 
Steven.



More information about the Python-list mailing list