Open amitk opened 7 years ago
=begin
=~ This pattern-matching operator operator returns index of first match in string, otherwise it returns nil.
=end
p /hey/ =~ 'heywassup'
p /hellp/ =~ 'heywassup'
=begin
=~ This pattern-matching operator operator returns index of first match in string, otherwise it returns nil.
=end
p /hey/ =~ 'heywassup'
p /hellp/ =~ 'heywassup'