title: How to remove all non-alphabetic characters from a string?
body: <p>I have been working on a program which will take a hex file, and if the file name starts with "CID", then it should remove the first 104 characters, and after that point there is a few words. I also want to remove everything after the words, but the problem is the part I want to isolate varies in length.</p>
  
  <p>My code is currently like this:</p>
  
  <pre><code>y = 0
  import os
  files = os.listdir(".")
  
  filenames = []
  for names in files:
      if names.endswith(".uexp"):
          filenames.append(names)
          y +=1
          print(y)
  print(filenames)
  
  for x in range(1,y):
      filenamestart = (filenames[x][0:3])
      print(filenamestart)
      if filenamestart == "CID":
          openFile = open(filenames[x],'r')
          fileContents = (openFile.read())
          ItemName = (fileContents[104:])
          print(ItemName)
  </code></pre>
  
  <p>Input Example file (pulled from HxD):</p>
  
  <pre><code>.........................ýÿÿÿ................E.................!...1AC9816A4D34966936605BB7EFBC0841.....Sun Tan Specialist.................9.................!...9658361F4EFF6B98FF153898E58C9D52.....Outfit.................D.................!...F37BE72345271144C16FECAFE6A46F2A.....Don't get burned............................................................................................................................Áƒ*ž
  </code></pre>
  
  <p>I have got it working to remove the first 104 characters, but I would also like to remove the characters after 'Sun Tan Specialist', which will differ in length, so I am left with only that part.</p>
  
  <p>I appreciate any help that anyone can give me.</p>