Boost C++ Libraries: Ticket #4270: Hexadecimal range problem. https://svn.boost.org/trac10/ticket/4270 <p> Sorry for my english. </p> <p> There is a problem with hexadecimal ranges, in perl it is posible to do this: \x5A[\x00-\xCC]<a class="report" href="https://svn.boost.org/trac10/report/12">{12}</a>\x5A to match almost all hexadecimal numbers, but it's not possible to do it with booost regex. </p> <p> I get this runtime error when I try to run it: </p> <p> Character set declaration starting with [ terminated prematurely - either no ] was found or the set had no content. The error occured while parsing the regular expression: 'Z[&gt;&gt;&gt;HERE&gt;&gt;&gt;'. </p> <p> Thank you </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4270 Trac 1.4.3 John Maddock Fri, 28 May 2010 08:28:41 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4270#comment:1 https://svn.boost.org/trac10/ticket/4270#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">worksforme</span> </li> </ul> <p> Works for me: don't forget that if you're embedding the expression in your program as a string literal, then it becomes "<br />x5A[<br />x00-<br />xCC]<a class="report" href="https://svn.boost.org/trac10/report/12">{12}</a><br />x5A" since the compiler gobbles up the first \. </p> <p> HTH, John. </p> <p> PS if you still have a problem, please reopen and post a self-contained test case along with details of the compiler and platform used. </p> Ticket