$_ = 'first second ...other non-\w char groups...'; my @s; @s = /\w+/g; # or else @s = split " ";