in reply to Re: Regexp for range of numbers
in thread Regexp for range of numbers
or you could move your anchor and use an impossible anchor for the fail-pattern:/^(\d{1,3})$(?(?{$1<256 }) | . )/x
/^(\d{1,3})(?(?{$1<256 }) $ | ^ )/x
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regexp for range of numbers
by Anonymous Monk on Apr 05, 2005 at 12:37 UTC |