Why regular expression on numbers? You can select all numbers less than 1000 and greater than 99.
my_array.select { |n| n<1000 && n>99 }
0
solved Get all three digit numbers from array and store in new array [closed]
Why regular expression on numbers? You can select all numbers less than 1000 and greater than 99.
my_array.select { |n| n<1000 && n>99 }
0
solved Get all three digit numbers from array and store in new array [closed]