str_file = f.read()
for i in list("~!@#$%^&*()-_=+[{]}\\|;:'\"/?"):
   if i in str_file:
       str_file = str_file.replace(i,' ')  
 return str_file

 for i in "~!@#$%^&*()-_=+[{]}\\|;:'\"/?":
     str_file = string.replace(str_file,i,' ')
char = re.compile('[`~!#$%^&*().,\[={}\]_:;"\']')
print re.sub(char,' ',str_file)

results matching ""

    No results matching ""