remove characters before last occurance of "."

Ethan Furman ethan at stoneleaf.us
Mon Nov 28 15:45:55 EST 2011


plsullivan1 at gmail.com wrote:
> s = GIS.GIS.Cadastral\GIS.GIS.Citylimit
> NeededValue = Citylimit

NeededValue = s.rsplit('.', 1)[1]

~Ethan~



More information about the Python-list mailing list