My array is
arr = ["wow what", "what anice", "anice day.currently", "day.currently i", "i am", "am in", "in delhi", "delhi but", "but in", "in night", "night i", "i am", "am going", "going to", "to us"]
arr.each do |el|
if !el.match('in') && !el.match('is').blank?
fresh_arr << el
end
but i have 110k element array and it give 8sec that,s too much time can i do this any another way
Thx
String#include?is 2-10 times as fast asString#match.