How to split string with multiple delimiters and find out which delimiter was used to split the string with a maxsplit of 1.
import re string =\"someText:so
You can use re.findall to find the none words delimiters using look around:
re.findall
>>> string ="someText:someValue~andthsi#istest@" >>> re.findall('(?<=\w)(\W)(?=\w)',string) [':', '~', '#']