title: C++ Regex not matching multiline strings
body: <p>I am having problems with C++0x regex when the string Im matching is a multiline string.
  Here is the code snippet Im trying to use:</p>
  
  <pre><code>std::smatch regMatch;
  std::string data = "&lt;key&gt;id&lt;/key&gt;&lt;string&gt;1&lt;/string&gt;\n&lt;key&gt;user&lt;/key&gt;&lt;string&gt;admin&lt;/string&gt;";
  if (std::regex_match(data, regMatch, std::regex("&lt;key&gt;user&lt;/key&gt;&lt;string&gt;(.*?)&lt;/string&gt;"))) {
      std::cout &lt;&lt; "Reg match: " &lt;&lt; regMatch[1].str() &lt;&lt; std::endl;
  }
  </code></pre>