Lets Say we have Zaptoit:685158:zaptoit@hotmail.com
How do you split so it only be left 685158:zaptoit@hotmail.com
As of Python 2.5 there is an even more direct solution. It degrades nicely if the separator is not found:
>>> s = 'Zaptoit:685158:zaptoit@hotmail.com'
>>> s.partition(':')
('Zaptoit', ':', '685158:zaptoit@hotmail.com')
>>> s.partition(':')[2]
'685158:zaptoit@hotmail.com'
>>> s.partition(';')
('Zaptoit:685158:zaptoit@hotmail.com', '', '')