nil
if there is no match. Otherwise, invokes
* obj.=~, passing str as an argument. The default
- * =~
in Object
returns false
.
+ * =~
in Object
returns nil
.
*
* "cat o' 9 tails" =~ /\d/ #=> 7
* "cat o' 9 tails" =~ 9 #=> nil