title: String split formatting in python 3
body: <p>I'm trying to format this string below where one row contains five words. However, I keep getting this as the output:</p>
  
  <blockquote>
    <p>I love cookies yes I do Let s see a dog</p>
  </blockquote>
  
  <p>First, I am not getting 5 words in one line, but instead, everything in one line. </p>
  
  <p>Second, why does the "Let's" get split? I thought in splitting the string using "words", it will only split if there was a space in between? </p>
  
  <p>Suggestions? </p>
  
  <pre><code>string = """I love cookies. yes I do. Let's see a dog."""
  
  
  # split string
  words = re.split('\W+',string)
  
  words = [i for i in words if i != '']
  
  
  counter = 0
  output=''
  for i in words:
      if counter == 0:
          output +="{0:&gt;15s}".format(i)
  
  # if counter == 5, new row
      elif counter % 5 == 0:
         output += '\n'
         output += "{0:&gt;15s}".format(i)
  
      else:
         output += "{0:&gt;15s}".format(i)
  
      # Increase the counter by 1
      counter += 1
  
  print(output)
  </code></pre>