Boost C++ Libraries: Ticket #8159: Boost Regex Documentation Problem: Some examples are wrong https://svn.boost.org/trac10/ticket/8159 <p> In the description of the Perl syntax for regex ( <a href="http://www.boost.org/doc/libs/1_53_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html">http://www.boost.org/doc/libs/1_53_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html</a> ), in the Negation paragraph, it is written: " If the bracket-expression begins with the <sup> character, then it matches the complement of the characters it contains, for example =a-c= matches any character that is not in the range a-c. " </sup></p> <p> However, the regex =a-c= actually matches the string =a-c=, contrary to what the example says. It should be [^a-c] instead of =a-c=. </p> <p> Also, in both paragraphs above ("character ranges" and "single characters") regexes like =[abc]= and =[a-c]= are used in place of [abc] and [a-c], respectively. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8159 Trac 1.4.3 Marcelo Garlet Millani <marcelogmillani@…> Sat, 23 Feb 2013 18:38:24 GMT attachment set https://svn.boost.org/trac10/ticket/8159 https://svn.boost.org/trac10/ticket/8159 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.cpp</span> </li> </ul> Ticket viboes Mon, 04 Mar 2013 18:03:30 GMT component changed; owner set https://svn.boost.org/trac10/ticket/8159#comment:1 https://svn.boost.org/trac10/ticket/8159#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">regex</span> </li> </ul> Ticket John Maddock Sat, 20 Apr 2013 16:01:43 GMT <link>https://svn.boost.org/trac10/ticket/8159#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8159#comment:2</guid> <description> <p> It's a SNAFU in the document formatting, will fix shortly. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sat, 20 Apr 2013 16:02:36 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8159#comment:3 https://svn.boost.org/trac10/ticket/8159#comment:3 <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> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83987" title="Fix formatting of document. Fixes #8159.">[83987]</a>) Fix formatting of document. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8159" title="#8159: Bugs: Boost Regex Documentation Problem: Some examples are wrong (closed: fixed)">#8159</a>. </p> Ticket