pattern match !

Asun Friere afriere at
Wed Jul 11 07:48:24 CEST 2007

On Jul 11, 1:40 pm, hari.sir... at wrote:
> Extract the application name with version from an RPM string like
> hpsmh-, i require to extract hpsmh-
> from above string. Sometimes the RPM string may be hpsmh-
> Linux.RPM.

Now that list-like splicing and indexing works on strings, why not
just splice the string, using .index to locate '-RHEL'?

More information about the Python-list mailing list