title: Python removing delimiters from strings
body: <p>I have 2 related questions/ issues.</p>
  
  <pre><code>def remove_delimiters (delimiters, s):
      for d in delimiters:
          ind = s.find(d)
          while ind != -1:
              s = s[:ind] + s[ind+1:]
              ind = s.find(d)
  
      return ' '.join(s.split())
  
  
  delimiters = [",", ".", "!", "?", "/", "&amp;", "-", ":", ";", "@", "'", "..."]
  d_dataset_list = ['hey-you...are you ok?']
  d_list = []
  
  for d in d_dataset_list:
      d_list.append(remove_delimiters(delimiters, d[1]))
  
  print d_list
  </code></pre>
  
  <p>Output = <code>'heyyouare you ok'</code></p>
  
  <ol>
  <li><p>What is the best way of avoiding strings being combined together when a delimiter is removed?  For example, so that the output is <code>hey you are you ok</code> ?</p></li>
  <li><p>There may be a number of different sequences of <code>...</code>, for example <code>..</code> or <code>..........</code> etc.  How does one go around implementing some form of rule, where if more than one <code>.</code> appear after each other, to remove it?  I want to try and avoid hard-coding all sequences in my delimiters list.  Thankyou</p></li>
  </ol>