Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「単語」文字(\w)と一致させて「_」を除外するか、空白文字(\s)と一致させて「\t」を除外するとします。これどうやってするの?
\w
\s
\Wまたは\Sを含む否定されたクラスを使用します。
/[^\W_]/ # anything that's not a non-word character and not _ /[^\S\t]/ # anything that's not a non-space character and not \t