I wanted to split a sentence on multiple delimiters:
.?!\n
However, I want to keep the comma along with the word. For example for the string
'Hi, How are you?'
I want the result
['Hi,', 'How', 'are', 'you', '?']
I tried the following, but not getting the required result
words = re.findall(r"\w+|\W+", text)