Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if special character in string python

string = "Daneshwar$/?$Daneshwar"
regex = re.compile('[@_!#$%^&*()<>?/|}{~:]')
if(regex.search(string) == None):
	print("special is absent")
else:
	print("present")
 
PREVIOUS NEXT
Tagged: #check #special #character #string #python
ADD COMMENT
Topic
Name
9+8 =