Or if it's part of a larger regexp where backtracking is required,
/((?>\d+))(?(?{ $^N < 250 || $^N > 730 })(?!))/
However, a parser is probably more appropriate at this point.
In reply to Re^2: Range of numbers
by ikegami
in thread Range of numbers
by marto9
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |