

$1  captures the entire number 
$2  captures the optional sign of the number 
$3  captures the complete set of digits 
If base=N is specified, the number is assumed to be in that base (with A..Z representing the digits for 11..36). By default, the base is 10.
If radix=P is specified, the pattern P is used as the radix point for the number (i.e. the decimal point in base 10). The default is qr/[.]/.
If places=N is specified, the number is assumed to have exactly N places after the radix point. If places=M,N is specified, the number is assumed to have between M and N places after the radix point. By default, the number of places is unrestricted.
If sep=P specified, the pattern P is required as a grouping marker within the preradix section of the number. By default, no separator is allowed.
If group=N is specified, digits between grouping separators must be grouped in sequences of exactly N characters. The default value of N is 3.
If expon=P is specified, the pattern P is used as the exponential marker. The default value of P is qr/[Ee]/.
If sign=P is specified, the pattern P is used to match the leading sign (and the sign of the exponent). This defaults to [+]?, means means that an optional plus or minus sign can be used.
For example:
$RE{num}{real} # matches 123.456 or 0.1234567 $RE{num}{real}{places=>2} # matches 123.45 or 0.12 $RE{num}{real}{places=>0,3} # matches 123.456 or 0 or 9.8 $RE{num}{real}{sep=>[,.]?} # matches 123,456 or 123.456 $RE{num}{real}{base=>3} # matches 121.102
Under keep:
$1  captures the entire match 
$2  captures the optional sign of the number 
$3  captures the complete mantissa 
$4  captures the whole number portion of the mantissa 
$5  captures the radix point 
$6  captures the fractional portion of the mantissa 
$7  captures the optional exponent marker 
$8  captures the entire exponent value 
$9  captures the optional sign of the exponent 
$10  captures the digits of the exponent 
If base=N is specified, the number is assumed to be in that base (with A..Z representing the digits for 11..36). By default, the base is 10.
If radix=P is specified, the pattern P is used as the radix point for the number (i.e. the decimal point in base 10). The default is qr/[.]/.
If places=N is specified, the number is assumed to have exactly N places after the radix point. If places=M,N is specified, the number is assumed to have between M and N places after the radix point. By default, the number of places is unrestricted.
If sep=P specified, the pattern P is required as a grouping marker within the preradix section of the number. By default, no separator is allowed.
If group=N is specified, digits between grouping separators must be grouped in sequences of exactly N characters. The default value of N is 3.
For example:
$RE{num}{decimal} # matches 123.456 or 0.1234567 $RE{num}{decimal}{places=>2} # matches 123.45 or 0.12 $RE{num}{decimal}{places=>0,3} # matches 123.456 or 0 or 9.8 $RE{num}{decimal}{sep=>[,.]?} # matches 123,456 or 123.456 $RE{num}{decimal}{base=>3} # matches 121.102
Under keep:
$1  captures the entire match 
$2  captures the optional sign of the number 
$3  captures the complete mantissa 
$4  captures the whole number portion of the mantissa 
$5  captures the radix point 
$6  captures the fractional portion of the mantissa 
This pattern is available for version 5.008 and up.
Under keep, the number will be captured in $1.
Regexp::Common for a general description of how to use this interface.
Damian Conway (damian@conway.org)
This package is maintained by Abigail (regexpcommon@abigail.be).
Bound to be plenty.For a start, there are many common regexes missing. Send them in to regexpcommon@abigail.be.
This software is Copyright (c) 2001  2013, Damian Conway and Abigail.This module is free software, and maybe used under any of the following licenses:
1) The Perl Artistic License. See the file COPYRIGHT.AL. 2) The Perl Artistic License 2.0. See the file COPYRIGHT.AL2. 3) The BSD Licence. See the file COPYRIGHT.BSD. 4) The MIT Licence. See the file COPYRIGHT.MIT.
perl v5.20.3  REGEXP::COMMON::NUMBER (3)  20130311 
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.