DigitCharacter
DigitCharacter represents a digit character 0–9 in StringExpression.
Examples
Match all digits in a string:
StringCases["abc123def456", DigitCharacter]
(* {"1", "2", "3", "4", "5", "6"} *)Match sequences of digits:
StringCases["abc123def456", DigitCharacter ..]
(* {"123", "456"} *)Please visit the official Wolfram Language Reference for more details.