NAME Parv::Util::Regex::Number - Regular expressions methods related to numbers SYNOPSIS use Parv::Util::Regex::Number; $urn = Parv::Util::Regex::Number->make(); print $urn->if_decimal(90); # prints 0 print $urn->if_number(90); # prints 1 $int_re = $urn->integer_regex(); # regex to match integer DESCRIPTION Parv::Util::Regex::Number, 0.00, is OO module. There is only a constructor, and no cloner/copier. Numbers are assumed to have dot, '.', as the separator between integer and fraction parts, unless a string is provided via constructor "make()" or dedicated method "decimal_char()". This module will recognize a given value as a number in following formats only... Plain: 19 , 19. , 19.9 Exponent'd: 19e1 , 19.0e-3 , 19.9E3.5 Perl style: 1_9 , 19.0_e1_00 , 19_00E-0.2_5 INTERFACE make() -- Constructor *Input*: Optional integer and fraction part separator string; default is '.'. *Output*: Parv::Util::Regex::Number object decimal_char() -- bi mode function, depending on input Mode A *Input*: Nothing *Output*: Integer and fraction part separator string Mode B *Input*: Integer and fraction part separator string; default is '.'. *Output*: Adjusted object integer_regex() *Input*: Nothing *Output*: Regex to match integer decimal_regex() *Input*: Nothing *Output*: Regex to match decimal number number_regex() *Input*: Nothing *Output*: Regex to match a number if_integer() *Input*: Integer to be matched *Output*: 1 if matched, else 0 if_decimal() *Input*: Decimal number to be matched *Output*: 1 if matched, else 0 if_number() *Input*: Number to be matched *Output*: 1 if matched, else 0