in reply to Re: Re: Regex negative number question
in thread Regex negative number question

Regexp::Common doesn't have a regexp for negative numbers, but you can easily add that yourself. For instance, if you want to match negative decimal numbers, use:
use Regexp::Common; /(?=-)$RE{num}{decimal}/
The (?=-) requires the match to start with a minus sign.

Abigail