in reply to Regexp for range of numbers
my $re =qr/ ^(\d{1,3})$ # Up to 3 digits (?(?{ ($1<256 and $1>=0) }) # If in the correct range .? # An allways match | # Else . # Never going to match after e +nd of string ) /x;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexp for range of numbers
by Roy Johnson (Monsignor) on Apr 05, 2005 at 12:16 UTC | |
by Anonymous Monk on Apr 05, 2005 at 12:37 UTC |