human
Python - Insert numbers in string between quotes
assistant
Here is some code to enclose numbers in quotes in a string `This is number 1 and this is number 22`

re.sub('(\\d+)', '"\\1"', 'This is number 1 and this is number 22')

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