You are viewing a single comment's thread. Return to all comments →
If you don't want to use any loop:
import re s = input() print(True if re.findall('[a-zA-Z0-9]' , s) else False) print(True if re.findall('[a-zA-Z]' , s) else False) print(True if re.findall('[0-9]' , s) else False) print(True if re.findall('[a-z]' , s) else False) print(True if re.findall('[A-Z]' , s) else False)
Seems like cookies are disabled on this browser, please enable them to open this website
String Validators
You are viewing a single comment's thread. Return to all comments →
If you don't want to use any loop: