#!/usr/bin/env rubyhamlet = "The slings and arrows of outrageous fortune"hamlet.scan(/\w+/) # => [ "The", "slings", "and", "arrows", "of", "outrageous", "fortune" ]