Search
 
SCRIPT & CODE EXAMPLE
 

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")
Comment

PREVIOUS NEXT
Code Example
Python :: DeprecationWarning: executable_path has been deprecated, please pass in a Service object 
Python :: clear screen python 
Python :: intall python3 in linux 
Python :: spammer bot python 
Python :: pytube urllib.error.HTTPError: HTTP Error 410: Gone 
Python :: python delete none from list 
Python :: how to make a star in python turtle 
Python :: convert negative to zero in list in python 
Python :: for loop in df rows 
Python :: how to make my jupyter prin full array 
Python :: drop multiple columns pandas 
Python :: selenium python get innerhtml 
Python :: how to add button in tkinter 
Python :: python auto clicker 
Python :: numpy for data science 
Python :: python youtube downloader mp3 
Python :: random date python 
Python :: python change working directory to file directory 
Python :: django model plural 
Python :: reindex pandas dataframe from 0 
Python :: tensorflow mnist dataset import 
Python :: tk table python 
Python :: jupyter notebook dark theme 
Python :: jupyter print full dataframe 
Python :: python code to convert all keys of dict into lowercase 
Python :: thousands separator python 
Python :: Could not find a version that satisfies the requirement psycopg2=2.8 (from pgcli) (from versions: 2.7.5, 2.7.6, 2.7.6.1, 2.7.7) 
Python :: django created at field 
Python :: df.drop index 
Python :: how to calculate running time in python 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =