Say I have a string like ab234cid*(s349*(20kd and I want to extract all the numbers 234, 349, 20, what should I do ?
ab234cid*(s349*(20kd
234, 349, 20
Or you can make a simple function like this:
// Provided 'c' is only a numeric character int parseInt (char c) { return c - '0'; }