in reply to Numbers only in a string

You're sort of on the right track...

s/[^0-9]+//g;

That will get the RE to do what you're trying to do.


Dave