← Back to archive

Stdle #81 · regex · 2026-08-26

What does puts "hello world".scan(/\w+/).length output?

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

puts "hello world".scan(/\w+/).length
Regex
4 attempts left

Answer & explanation