diff --git a/doc/html/boost_regex/syntax/perl_syntax.html b/doc/html/boost_regex/syntax/perl_syntax.html index eed6b47b..358de1a8 100644 --- a/doc/html/boost_regex/syntax/perl_syntax.html +++ b/doc/html/boost_regex/syntax/perl_syntax.html @@ -405,7 +405,8 @@ characters

- For example =[abc]=, will match any of the characters 'a', 'b', or 'c'. + For example [abc], will match any of the characters 'a', + 'b', or 'c'.

@@ -413,10 +414,11 @@ ranges

- For example =[a-c]= will match any single character in the range 'a' to 'c'. - By default, for Perl regular expressions, a character x is within the range - y to z, if the code point of the character lies within the codepoints of - the endpoints of the range. Alternatively, if you set the collate + For example [a-c] will match any single character in the + range 'a' to 'c'. By default, for Perl regular expressions, a character x + is within the range y to z, if the code point of the character lies within + the codepoints of the endpoints of the range. Alternatively, if you set the + collate flag when constructing the regular expression, then ranges are locale sensitive.

@@ -426,7 +428,7 @@

If the bracket-expression begins with the ^ character, then it matches the - complement of the characters it contains, for example =a-c= + complement of the characters it contains, for example [^a-c] matches any character that is not in the range a-c.

diff --git a/doc/html/index.html b/doc/html/index.html index 247c0a84..cabf3cc6 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -198,7 +198,7 @@

- +

Last revised: November 29, 2012 at 10:43:51 GMT

Last revised: January 31, 2013 at 17:33:20 GMT


diff --git a/doc/syntax_perl.qbk b/doc/syntax_perl.qbk index fc412ebb..5c794d75 100644 --- a/doc/syntax_perl.qbk +++ b/doc/syntax_perl.qbk @@ -218,11 +218,11 @@ A bracket expression may contain any combination of the following: [h5 Single characters] -For example =[abc]=, will match any of the characters 'a', 'b', or 'c'. +For example [^\[abc\]], will match any of the characters 'a', 'b', or 'c'. [h5 Character ranges] -For example =[a-c]= will match any single character in the range 'a' to 'c'. +For example [^\[a-c\]] will match any single character in the range 'a' to 'c'. By default, for Perl regular expressions, a character x is within the range y to z, if the code point of the character lies within the codepoints of the endpoints of the range. Alternatively, if you set the @@ -232,7 +232,7 @@ when constructing the regular expression, then ranges are locale sensitive. [h5 Negation] If the bracket-expression begins with the ^ character, then it matches the -complement of the characters it contains, for example =[^a-c]= matches +complement of the characters it contains, for example [^\[^a-c\]] matches any character that is not in the range =a-c=. [h5 Character classes]