Boost C++ Libraries: Ticket #3428: Boost::regex brackets after \\?? https://svn.boost.org/trac10/ticket/3428 <p> For example declare: const boost::regex format("match<br />??(match)"); and run program. </p> <p> If I use brackets after <br />?? I get error "Microsoft C++ exception: boost::exception_detail::clone_impl&lt;boost::exception_detail::error_info_injector&lt;boost::regex_error&gt; &gt;" </p> <p> If I use brackets after (<br />?)? then it works. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3428 Trac 1.4.3 John Maddock Fri, 18 Sep 2009 09:55:14 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3428#comment:1 https://svn.boost.org/trac10/ticket/3428#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> This is an MSVC / std C++ issue, the character sequence ??( is treated as a trigraph by the compiler, so the string passed to Boost.Regex isn't the one you think you're passing :-( </p> <p> See <a class="ext-link" href="http://msdn.microsoft.com/en-us/library/bt0y4awe.aspx"><span class="icon">​</span>http://msdn.microsoft.com/en-us/library/bt0y4awe.aspx</a> </p> <p> HTH, John. </p> Ticket