in reply to Re: Why are my numbers not numeric???
in thread Why are my numbers not numeric???

so does this mean that I can't pattern match numbers in a string like this - I should start out saving them all in an array? thanks!
  • Comment on Re: Re: Why are my numbers not numeric???

Replies are listed 'Best First'.
Re: Why are my numbers not numeric???
by Abigail-II (Bishop) on Oct 09, 2003 at 16:26 UTC
    Uhm, no, that doesn't mean it. \d+ matches a string of digits. If you want to match different type of numbers (decimal numbers, integers, reals, etc), you need different regexes. See the FAQ, or Regexp::Common.

    Abigail