title: python regex findall and multiline
body: <p>python 2.6.8</p>
  
  <pre><code>s= '''
  foo 
  bar
  baz
  '''
  &gt;&gt;&gt;re.findall(r'^\S*',s,re.MULTILINE)
  ['', 'foo', 'bar', 'baz', '']
  &gt;&gt;&gt;ptrn = re.compile(r'^\S*',re.MULTILINE)
  &gt;&gt;&gt;ptrn.findall(s)
  ['', 'foo', 'bar', 'baz', '']
  &gt;&gt;&gt;ptrn.findall(s,re.MULTILINE)
  ['baz', '']
  </code></pre>
  
  <p>Why is there a difference between using MULTILINE flag in findall?</p>