•  
      tasks #45155 Program to check if a string contains any special character
    #45155
    Ritish Singh (ritish31)
    2022-08-16 08:32
    2022-08-16 08:32
    Details
    Program to check if a string contains any special character
    To execute this task we will make a regular expression using compile() that will have all the special characters which we don't want in our string. Then using the search() method we will search if any special character is present in the string or not. If no character is found the search() method will return None and then we can print that the string is accepted. We have used the re module to use the compile() and search() method.
    5 - Medium
    State of Progress
    2022-05-13
    100
    2022-05-15
    Ritish Singh (ritish31)
    Rakesh Kumar Verma (rakesh.verma)
    2022-05-14
    Closed
    Attachments
    References
    References list is empty