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
Make a state machine that operates on one basic principle: is the current character a number.
Optimizations are possible.