in reply to Range of numbers
use Regexp::Assemble; $re = Regexp::Assemble ->new() ->add( 250..730 ) ->re(); [download]
use Regexp::List qw( ); my $re = Regexp::List->new()->list2re( 250..730 ); [download]
In Perl 5.10, the regexp engine already does that for you.
use 5.010; # Trie alternations my ($re) = map qr/$_/, join '|', #map quotemeta, # Not needed this time. 250..730; [download]