Python Cut Example Try this: 'abcde:12345'.split(':')[1] You can do: string.split(":")[1] where string is your text