Click here to Skip to main content
15,894,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am looking for a function which gets a string, and returns that string without the characters which are not numeric.
for example:
when the string "A1B2C3" is givven to the function the returned value will be: "123".
I now its very simple to write it on my own, but isn't any function like that in c++ ?

Thanks,

Nir.
Posted

1 solution

No, there isn't such a function, you've to write your own.
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900