← Back to archive

Stdle #127 · regex · 2026-10-11

What does this Ruby snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

case "hello"
in /^h/ => s
puts s.upcase
end
Regex
4 attempts left

Answer & explanation