human
Delete digits in Python (Regex)
assistant
Here is some code to delete self-contained digits from string `s`

s = re.sub('^\\d+\\s|\\s\\d+\\s|\\s\\d+$', ' ', s)

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