$line=~/- # negative (?: # followed by \d+(?:\.\d+)? # digits possible followed by '.' digits | # or \.\d+ # '.' digits )/x; # with out comments looks like this $line=~/-(?:\d+(?:\.\d+)|\.\d+)/
In reply to Re: Regex negative number question
by fletcher_the_dog
in thread Regex negative number question
by Lori713
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |