/\w+/ will give a syntax error, because of / as separator and and \w+ will never match a space...