Open amitk opened 7 years ago
=begin
Alteration is not greedy
=end
p /tour|to|tournament/.match("every tournament is fun")
Greedy alternation would have matched the longest possible alternative i.e tournament
Example copied from training session :disappointed:
=begin
Alteration is not greedy
=end
p /tour|to|tournament/.match("every tournament is fun")
=begin
Greedy alternation would have matched the longest possible alternative i.e tournament
=end