title: python regex can not match if newline exists in string?
body: <p>I am using regex to find time in a string:</p>
  
  <pre><code>re.match('.*(\d{2}-\d{2} \d{2}:\d{2})', "09-22 13:27")
  </code></pre>
  
  <p>anyway, this is ok, but if <code>\n</code> exists, this return <code>None</code>:</p>
  
  <pre><code>re.match('.*(\d{2}-\d{2} \d{2}:\d{2})', "\n09-22 13:27")
  </code></pre>
  
  <p>so why <code>.*</code> can not match <code>\n</code>? and how to deal with this?</p>