Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if string is number reges

value = "12354"
# use isdigit function
value.isdigit()
# use regex
import re
re.compile(r'^d+$').match( value ) 
 
PREVIOUS NEXT
Tagged: #python #check #string #number #reges
ADD COMMENT
Topic
Name
1+9 =