[Israel.pm] RegEx question

Yuval Yaari yuval at windax.com
Tue Jan 8 16:03:45 PST 2008


Yitzchak Scott-Thoennes wrote:
> But of course:
>
> /^(?:(?:(\d+)-(?=(\d+)(??{$1 >= $2 &&
> "(?!)"})))?(\d+)(?:\z|,(?=(\d+)(??{$3 >= $4 && "(?!)"}))))+\z/
>   
Did you give Number::Range a shot?

HTH,

  ~Y



More information about the Perl mailing list