Open pegasusflyhigh opened 7 years ago
2.3.3 :066 > /**/ =~ "asterrix**" => 0 2.3.3 :067 > /\?/ =~ "who?" => 3 2.3.3 :068 > /+/ =~ "a+b" => 1 2.3.3 :069 > /a+b/ =~ "a+b" => 0 2.3.3 :070 > $~ => #<MatchData "a+b"> 2.3.3 :071 >
example 1,2 and 3 raises an exception.
2.3.3 :066 > /**/ =~ "asterrix**" => 0 2.3.3 :067 > /\?/ =~ "who?" => 3 2.3.3 :068 > /+/ =~ "a+b" => 1 2.3.3 :069 > /a+b/ =~ "a+b" => 0 2.3.3 :070 > $~ => #<MatchData "a+b"> 2.3.3 :071 >