in reply to Re: Collect numbers without the text
in thread Collect numbers without the text

Every line will match /\D/ because every line will have "\n" at the end of it. It might help to use chomp, but I'd still wonder how to handle leading/trailing white space, possible decimal numbers, etc.