R

TestRegex

Whitespace

[[:space:]]

Matches whitespace characters. Equivalent to \s.

Examples

Match Sample:
any whitespace character
Regex Example:
[[:space:]]+
PCRE

Share & Embed

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

<!-- Embed Regex Token: [[:space:]] -->
<code class="regex-token">[[:space:]]</code> - Whitespace
<small><a href="https://testregex.com/cheatsheet/whitespace">See details</a></small>