sure you can keep the regex. change \w+ to \S+ :P
an uppercase \S matches any none-whitespace character. where as the \s matches a whitespace character.