[Boost-bugs] [Boost C++ Libraries] #8159: Boost Regex Documentation Problem: Some examples are wrong

Subject: [Boost-bugs] [Boost C++ Libraries] #8159: Boost Regex Documentation Problem: Some examples are wrong
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-23 18:37:57


#8159: Boost Regex Documentation Problem: Some examples are wrong
----------------------------------------------------------------+-----------
 Reporter: Marcelo Garlet Millani <marcelogmillani@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.53.0
 Severity: Problem | Keywords: regex documentation negation
----------------------------------------------------------------+-----------
 In the description of the Perl syntax for regex (
 http://www.boost.org/doc/libs/1_53_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html
 ), in the Negation paragraph, it is written:
 "
 If the bracket-expression begins with the ^ 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.
 "

 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=.

 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8159>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC