python regex special symbol identification example (1) 썸네일형 리스트형 python regex special symbol identification example if you want to string inner one or more special symbol charter str = "qwe123!@#" import rep = re.compile('[^a-zA-Z0-9]+')print bool(p.search(str))-> True if you want to string inner only special symbol charter import rep = re.compile('[a-zA-Z0-9]+')if bool(p.search(str)) == False:print "use only special symbol charter" 이전 1 다음