1. $x = "cat dog house"; # 3 words 2. $x =~ /^\s*(\w+)\s+(\w+)\s+(\w+)\s*$/; # matches, 3. # $1 = 'cat' 4. # $2 = 'dog' 5. # $3 = 'house'