- or download this
$dataEntry =~ m{ \A # beginning of string
\+? # optional plus sign
\d+ # one or more digits
\z # end of string
}xms
- or download this
use Regexp::Common qw( number );
$dataEntry =~ /$RE{num}{int}/ && $dataEntry == abs $dataEntry
- or download this
m{ \A # beginning of string
\+? # optional plus sign
...
[0-9]* # optional digits, including zero
\z # end of string
}xms