Guest User

Untitled

a guest
Jun 28th, 2018
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. >>> s = 'Zaptoit:685158:zaptoit@hotmail.com'
  2. >>> s.split( ':', 1 )[1]
  3. '685158:zaptoit@hotmail.com'
  4.  
  5. s = 'Zaptoit:685158:zaptoit@hotmail.com'
  6. s.split(':', 1)[1]
  7.  
  8. s = 'Zaptoit:685158:zaptoit@hotmail.com'
  9. s[s.find(':')+1:]
  10.  
  11. >>> s = 'Zaptoit:685158:zaptoit@hotmail.com'
  12. >>> s[s.find(':')+1:]
  13. '685158:zaptoit@hotmail.com'
  14.  
  15. s = re.sub('^.*?:', '', s)
Add Comment
Please, Sign In to add comment