I have a string similar to 98abcd123fgh324ijklm564asd
. I want to insert a couple of spaces before and after each number in the string. Below is the sample output:
str = "98abcd123fgh324ijklm564asd"
required_function(str)
# " 98 abcd 123 fgh 324 ijklm 564 asd"