Is there any way to remove digits between two full stops in python?
eg:
Input 1: "remove 1 from .1."
Output 1: "remove 1 from."
Input 2: "XYZ is a student.2. XYZ is a boy.3. XYZ is smart."
Output 2: "XYZ is a student. XYZ is a boy. XYZ is smart."
I've tried the following regex but didn't get the preferred output.
output = re.sub(r'([^A-Z].[0-9])+)', input)