Boost C++ Libraries: Ticket #6042: regex: Exception for: wregex exp(L"fo(o|b)ar \\1", regbase::extended) https://svn.boost.org/trac10/ticket/6042 <p> This line of code gives an exception: </p> <div class="wiki-code"><div class="code"><pre><span class="n">wregex</span> <span class="nf">exp</span><span class="p">(</span><span class="sa">L</span><span class="s">&quot;fo(o|b)</span><span class="n">ar</span> <span class="err">\\</span><span class="mi">1</span><span class="s">&quot;, regbase::extended)</span><span class="p">;</span> </pre></div></div><p> It seems to be the <code>\1</code> part that cause the problem. </p> <p> (Running in a 32bit program on a 64bit Windows 7). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6042 Trac 1.4.3 thomas_linder_puls@… Thu, 20 Oct 2011 15:12:39 GMT status, severity changed; resolution set https://svn.boost.org/trac10/ticket/6042#comment:1 https://svn.boost.org/trac10/ticket/6042#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">fixed</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Not Applicable</span> </li> </ul> <p> Sorry I now realize that <code>regbase::extended</code> includes <code>regbase::no_bk_refs</code>. </p> Ticket John Maddock Thu, 20 Oct 2011 15:50:43 GMT <link>https://svn.boost.org/trac10/ticket/6042#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6042#comment:2</guid> <description> <p> Right - POSIX extended regular expressions don't support backreferences - use Perl compatible re's if you want that feature. </p> </description> <category>Ticket</category> </item> </channel> </rss>