There are many questions already answered for replacing everything positive numbers. But, I couldn't find any answer which preserves both positive and negative numbers. I want to replace everything that isn't number(positive or negative). The output should be the following eg.
0 | success. id - 1234|
-> 0 1234
and
-10 | failure. id - 2345|
-> -10 2345
Apparently this answers for the positive part.