If I would like to split the string from the number of the sentence: "It was amazing in 2016"
I use:
re.split('\s*((?=\d+))
out: 'It was amazing in', '2016'
Now I would like to do the opposite, so if a sentence starts with a number, then followed by a string like: '2016 was amazing'
I would like the result to be: '2016', 'was amazing'
re.split(r'(?<=\d)\s*', s)