/[^\s]+/g equals to /\S+/g, but the former is hard to understand.

/[^\s]+/g equals to /\S+/g, but the former is hard to understand. I have committed it on #122, however, it was replaced by someone.