Lets Say we have Zaptoit:685158:[email protected]
How do you split so it only be left 685158:[email protected]
Lets Say we have Zaptoit:685158:[email protected]
How do you split so it only be left 685158:[email protected]
Another solution:
s = 'Zaptoit:685158:[email protected]'
s.split(':', 1)[1]
>>> s = 'Zaptoit:685158:[email protected]'
>>> s.split( ':', 1 )[1]
'685158:[email protected]'
Another method, without using split:
s = 'Zaptoit:685158:[email protected]'
s[s.find(':')+1:]
Ex:
>>> s = 'Zaptoit:685158:[email protected]'
>>> s[s.find(':')+1:]
'685158:[email protected]'