R

TestRegex

Any non-whitespace character

\S

Matches anything other than a space, tab or newline.

Examples

Match Sample:
any non-whitespace
Regex Example:
\S+
JAVASCRIPT PYTHON PCRE

Share & Embed

Use this snippet to display this token on your own site.

<!-- Embed Regex Token: \S -->
<code class="regex-token">\S</code> - Any non-whitespace character
<small><a href="https://testregex.com/cheatsheet/any-non-whitespace-character">See details</a></small>