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.
In reply to Re^2: Collect numbers without the text
by kyle
in thread Collect numbers without the text
by ITmajor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |