Is there are more succinct or Rubyesque way of writing this:
if ( variable =~ /regex1/ || variable =~ /regex2/ || variable =~ /regex3/ ... )
end
Namely, I'm hoping for something shorter, like:
if ( variable =~ /regex1/,/regex2/,/regex3/ )
which I realize is not valid Ruby code, but figuring someone may know a more clever trick.