Regex to accept only numbers

Hi. I want a regex that will only accept numbers
Example-
5467587698709
558
It should not accept combination of alphabet like- dda624

Regex would be like this : [1]+$
This would accept one or more numbers.


  1. 0-9 ↩︎