pegasusflyhigh / Assignment_Regex

0 stars 0 forks source link

Escaping quantifiers #11

Open pegasusflyhigh opened 7 years ago

pegasusflyhigh commented 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 >

mohitpm commented 7 years ago

example 1,2 and 3 raises an exception.