Help for this page

Select Code to Download


  1. or download this
    return 1 if (defined $_[0] && $_[0] =~ /^[\d\.]+$/ && $_[0] =~ /\d/ &&
    + ( () = $_[0] =~ /\./g ) <= 1);
    return 1 if ( defined $_[0] && length($_[0]) == ($_[0] =~ tr/012345678
    +9.//) && ( $_[0] =~ tr/0123456789//) >= 1 && ($_[0] =~ tr/.//) <= 1);