String Formatting

OriginalBrownster originalbrownster at gmail.com
Thu Aug 10 08:35:26 EDT 2006


Hi there:

I was wondering if its at all possible to search through a string for a
specific character.

I want to search through a string backwords and find the last
period/comma, then take everything after that period/comma

Example

If i had a list:    bread, butter, milk

I want to just take that last entry of milk. However the need for it
arises from something more complicated.

Any help would be appreciated




More information about the Python-list mailing list