Opened 10 years ago
Closed 10 years ago
#8159 closed Bugs (fixed)
Boost Regex Documentation Problem: Some examples are wrong
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | regex |
Version: | Boost 1.53.0 | Severity: | Problem |
Keywords: | regex documentation negation | Cc: |
Description
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.
Attachments (1)
Change History (4)
by , 10 years ago
comment:1 by , 10 years ago
Component: | None → regex |
---|---|
Owner: | set to |
comment:2 by , 10 years ago
comment:3 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
It's a SNAFU in the document formatting, will fix shortly.