R

TestRegex

Any digit

\d

Matches any decimal digit. Equivalent to [0-9].

Examples

Match Sample:
one: 1, two: 2
Regex Example:
\d
JAVASCRIPT PYTHON PCRE

Share & Embed

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

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