in reply to Re: Explain a regex
in thread Explain a regex

!?

use Regexp::Common qw[number];; print $RE{num}{real};; (?:(?i)(?:[+-]?)(?:(?=[0123456789]|[.])(?:[0123456789]*)(?:(?:[.])(?:[ +0123456789]{0,}))?)(?:(?:[E])(?:(?:[+-]?)(?:[0123456789]+))|))

Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.

Replies are listed 'Best First'.
Re^3: Explain a regex
by Tanktalus (Canon) on Jan 22, 2005 at 16:51 UTC

    I think that Randal's point is that just because something is on CPAN, or even in the main perl distribution (which I don't think is the case for Regexp::Common), doesn't mean that it's the most optimal, clue-filled way to do it. ;-) For example, my modules on CPAN probably would not meet with Randal's full approval either ;-)

Re^3: Explain a regex
by erix (Prior) on Jan 22, 2005 at 18:00 UTC

    The first line of your sig can be safely reversed here:

    Examine who speaks, not what is said.