Ruby concepts

Ruby · Regex

Ruby Regex puzzles

2 Ruby puzzles on regex. Read the snippet, guess the output, then reveal the answer and why Ruby behaves that way.