So I am trying to match email to email domains (ie bob@test to @test.com). Both the array of emails and email domains are in separate arrays. Right now I am trying the following:
@Domains.each do |domain|
if @Emails.include?(/.*/ + domain) then
#do stuff
end
end
That is obviously throwing errors and I cannot find another solution. Any ideas?
thenin ruby