Check if String Contains Only Numbers using Python April 26, 2021 Python 0 Comments 370 Views re.match function import re text = '0210426' result = bool(re.match(r'^\d+$', text)) print(result)
Leave a Comment
Cancel reply