remove characters before last occurance of "."

plsullivan1 at gmail.com plsullivan1 at gmail.com
Mon Nov 28 15:24:32 EST 2011


I need for GIS.GIS.Cadastral\GIS.GIS.Citylimit to be Citylimit. The "cadastral" and "citylimit" will be different as I readlines from a list. In other words, the above could be GIS.GIS.Restricted\GIS.GIS.Pipeline and I would need Pipeline.

s = GIS.GIS.Cadastral\GIS.GIS.Citylimit
NeededValue = Citylimit

Thanks.



More information about the Python-list mailing list