I\'m familiar with Ruby\'s include? method for strings, but how can I check a string for multiple things?
include?
Specifically, I need to check if a string cont
the_string =~ /fwd:|fw:/i
You could also use something like
%w(fwd: fw:).any? {|str| the_string.downcase.include? str}
Though personally I like the version using the regex better in this case (especially as you have to call downcase in the second one to make it case insensitive).