Reputation: 1389
I would like to remove all numbers in a string.
For example,
I would like to convert String into String2.
Can anyone give me a small code for this?
Upvotes: 0
Views: 1042
Reputation: 3057
What have you tried so far? Below are 3 methods how to achieve it (could be even more ways of solution).
UPD: updated based on comment from sweber.
Upvotes: 1