I came across an example in the Ruby documentation and am confused about it’s exact meaning. I am referring to =~. The sample below uses it, but I’m not sure what it’s purpose over say == is.
a = %w{ a b c d e f }
a.select {|v| v =~ /[aeiou]/} #=> ["a", "e"]
See the difference?