0

How can I verify that every character in a string is a 0-9 digit? For example: 1343151234234 is valid but 2342343ABC34234 is not valid. Thank you.

1 Answers1

5

^\d+$

Using 'SingleLine' option (in C# it is RegexOptions.SingleLine).

Derreck Dean
  • 3,708
  • 1
  • 26
  • 45