in reply to Regex negative number question
$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+)/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regex negative number question
by Not_a_Number (Prior) on Oct 06, 2003 at 20:02 UTC |