my @new_array=grep { /RANGEID/ and /REROUTING_NUM/ } @array