Boost C++ Libraries: Ticket #2055: \u20ac (euro sign) not parsed correctly https://svn.boost.org/trac10/ticket/2055 <pre class="wiki">boost::RegEx r; r.SetExpression("^([\\u20ac])"); r.Search("c"); // Yields true! r.SetExpression("^(\\u20ac)"); r.Search("c"); // Yields false! I believe both should return false! </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2055 Trac 1.4.3 John Maddock Fri, 11 Jul 2008 17:05:08 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2055#comment:1 https://svn.boost.org/trac10/ticket/2055#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> Boost.Regex doesn't recognise \u as a Unicode escape sequence: for historical reasons \u has another meaning. </p> <p> Use \x{20ac} to match a euro sign, see docs here: <a href="http://www.boost.org/doc/libs/1_35_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html">http://www.boost.org/doc/libs/1_35_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html</a> </p> <p> HTH, John Maddock </p> Ticket