string special characters python

# import required package
import re 
  
# Function checks if the input string(test)
# contains any special character or not
def check_splcharacter(test): 
  
    # Make an RE character set and pass  
    # this as an argument in compile function
 
	string_check= re.compile('[@_!#$%^&*()<>?/\|}{~:]') 
      
    # Pass the string in search function  
    # of RE object (string_check).
     
    if(string_check.search(test) == None): 
        print("String does not contain Special Characters.")
          
    else: 
        print("String contains Special Characters.") 

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
python string with special characters include special characters in string python python special character in string make python import special characters python special letters in string special characters python string print string with special characters in python3 print string special characters python3 string special character python python special characters to normal string how to account for special characters in python how to give special characters in python as string string.special characters in python special characters in python string how to find a special character in a string in python use special characters in python python list of special characters special string characters python is special char python python import special characters print python special characters how to use special characters in python how to represent special symbol in string in python python print string with special characters how to put special characters in python string how to put special characters in python how to put special symbols in python string special characters in string python find the special characters in string python how to treat special characters in python how to get special characters in python print special characters in string python python function for special characters how to get special charater in python how to identify special characters in python python is special character python special characters pass special characters as string in python python special characters strig find special characters in string python python string special characters list python string special characters python special characters list how to print special characters in python how to use special characters in string python special characters letters in python special characters in python special character function in python3 special character function in python using special characters in python string python special symbols How to handle special characters in Python how to find the special characters in python special characters python string special operators in python string special characters python
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source