human
Delete digits in Python (Regex)
assistant
Here is some code to delete digits at the end of string `s`

re.sub('\\b\\d+\\b', '', s)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.