Any non-word character
\WMatches anything other than a letter, number or underscore.
Examples
Match Sample:
any word character
Regex Example:
\W+
JAVASCRIPT PYTHON PCRE
Share & Embed
Use this snippet to display this token on your own site.
<!-- Embed Regex Token: \W --> <code class="regex-token">\W</code> - Any non-word character <small><a href="https://testregex.com/cheatsheet/any-non-word-character">See details</a></small>