I am trying to replace any sequence of numbers in a string with the number itself within brackets. So the input:
"i ee44 a1 1222"
Should have as an output:
"i ee(44) a(1) (1222)"
I am trying to implement it using String.replace(a,b) but with no success.
See Question&Answers more detail:os