title: strip or remove all special characters from list of strings in python
body: <p>I have list of strings and I have to remove all special characters (, - ' " .).</p>
  
  <p>My code is </p>
  
  <pre><code>import glob
  import re
  
  files = []
  for text in glob.glob("*.txt.txt"):
   with open(text) as f:
      fileRead = [ line.lower() for line in f]
   files.append(fileRead)
  
  files1 = []
  
  for item in files :
   files1.append(''.join(item))
  </code></pre>
  
  <p>I have used lot of options including "replace", "strip" and "re".</p>
  
  <p>when I use strip (shown below), the code runs but no changes are seen in output.</p>
  
  <pre><code>files1 = [line.strip("'") for line in files1]
  </code></pre>
  
  <p>When I use re, I get TypeError: expected string or bytes-like object.
  I changed to list of strings from list of lists so that I can use re. This method is stated many times but did not solve the problem for me.</p>
  
  <pre><code>files1 = re.sub(r"[-()\"#/@;:&lt;&gt;{}`+=~|.!?,]", "", files1)
  </code></pre>
  
  <p>I am not able to use replace as it throws an attribute error that replace cannot be used on lists.</p>
  
  <p>Please suggest me how can I get rid of all special characters.</p>