Use \w in regexp, use while() again