in reply to Validating numeric input
If input contains negative number or so. Thenif ($value !~ /^\d{2}$/) { print "input contains more than two digit"; }
cheers, --cif ($value !~ /^(-)*\d{2}$/) { print "input contains more than two digit"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Validating numeric input
by VSarkiss (Monsignor) on Feb 05, 2005 at 20:05 UTC |