Help for this page

Select Code to Download


  1. or download this
    # Assuming expression is in $string
    my $num  = '-?(\.\d+|\d+(\.\d+)?)';
    ...
    } else {
        # It's something else
    }