I have conversations that look as follows:
s = "1) Person Alpha:\nHello, how are you doing?\n\n1) Human:\nGreat, thank you.\n\n2) Person Alpha:\nHow is the weather?\n\n2) Human:\nThe weather is good."
1) Person Alpha:
Hello, how are you doing?
1) Human:
Great, thank you.
2) Person Alpha:
How is the weather?
2) Human:
The weather is good.
I would like to remove the enumeration at the beginning to get the following result:
s = "Person Alpha:\nHello, how are you doing?\n\nHuman:\nGreat, thank you.\n\nPerson Alpha:\nHow is the weather?\n\nHuman:\nThe weather is good."
Person Alpha:
Hello, how are you doing?
Human:
Great, thank you.
Person Alpha:
How is the weather?
Human:
The weather is good.
My idea is to search for 1), 2), 3),... in the text and replace it with an empty string. This might work but is inefficient (and can be a problem if e.g. 1) appears in the text of the conversation).
Is there a better / more elegant way to do this?