What is the "=~" operator in Ruby? - Stack Overflow
str =~ obj => fixnum or nil. Match—If obj is a Regexp, use it as a pattern to match against str, and returns the offset position the match starts, or nil if there is no match. Otherwise, invokes obj.=~, passing str as an argument. The default =~ in Object returns false. Well, the reference is correct, it is the "matches this regex" operator ...
DA: 85 PA: 2 MOZ Rank: 78 Up or Down: Up