I’m familiar with Ruby’s include? method for strings, but how can I check a string for multiple things?
Specifically, I need to check if a string contains “Fwd:” or “FW:” (and should be case insensitive)
Example string would be: “FWD: Your Amazon.com Order Has Shipped”
You could also use something like
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).