title: C++11 Regex Matching
body: <p>I'm attempting a fairly simple regex match in C++11 (using gcc 4.7.2), but I'm having a large amount of trouble. Attempting to construct a pattern using</p>
  
  <pre><code>std::regex unquoted(R"regex(\s*([^",]+)\s*)regex");
  </code></pre>
  
  <p>causes the constructor to throw a <code>std::regex_error</code> exception with the code <code>std::regex_constants::error_escape</code>. Several regex testers online have no problem with the same expression, and I've tried using different some of the different syntax options to no avail. Is there something fundamentally different about the C++ regex syntax that I'm not grasping?</p>