forked from boostorg/regex
@ -405,7 +405,8 @@
|
|||||||
characters</a>
|
characters</a>
|
||||||
</h6>
|
</h6>
|
||||||
<p>
|
<p>
|
||||||
For example =[abc]=, will match any of the characters 'a', 'b', or 'c'.
|
For example <code class="literal">[abc]</code>, will match any of the characters 'a',
|
||||||
|
'b', or 'c'.
|
||||||
</p>
|
</p>
|
||||||
<h6>
|
<h6>
|
||||||
<a name="boost_regex.syntax.perl_syntax.h13"></a>
|
<a name="boost_regex.syntax.perl_syntax.h13"></a>
|
||||||
@ -413,10 +414,11 @@
|
|||||||
ranges</a>
|
ranges</a>
|
||||||
</h6>
|
</h6>
|
||||||
<p>
|
<p>
|
||||||
For example =[a-c]= will match any single character in the range 'a' to 'c'.
|
For example <code class="literal">[a-c]</code> will match any single character in the
|
||||||
By default, for Perl regular expressions, a character x is within the range
|
range 'a' to 'c'. By default, for Perl regular expressions, a character x
|
||||||
y to z, if the code point of the character lies within the codepoints of
|
is within the range y to z, if the code point of the character lies within
|
||||||
the endpoints of the range. Alternatively, if you set the <a class="link" href="../ref/syntax_option_type/syntax_option_type_perl.html" title="Options for Perl Regular Expressions"><code class="literal">collate</code>
|
the codepoints of the endpoints of the range. Alternatively, if you set the
|
||||||
|
<a class="link" href="../ref/syntax_option_type/syntax_option_type_perl.html" title="Options for Perl Regular Expressions"><code class="literal">collate</code>
|
||||||
flag</a> when constructing the regular expression, then ranges are locale
|
flag</a> when constructing the regular expression, then ranges are locale
|
||||||
sensitive.
|
sensitive.
|
||||||
</p>
|
</p>
|
||||||
@ -426,7 +428,7 @@
|
|||||||
</h6>
|
</h6>
|
||||||
<p>
|
<p>
|
||||||
If the bracket-expression begins with the ^ character, then it matches the
|
If the bracket-expression begins with the ^ character, then it matches the
|
||||||
complement of the characters it contains, for example =<code class="literal">a-c</code>=
|
complement of the characters it contains, for example <code class="literal">[^a-c]</code>
|
||||||
matches any character that is not in the range <code class="literal">a-c</code>.
|
matches any character that is not in the range <code class="literal">a-c</code>.
|
||||||
</p>
|
</p>
|
||||||
<h6>
|
<h6>
|
||||||
|
@ -198,7 +198,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||||
<td align="left"><p><small>Last revised: November 29, 2012 at 10:43:51 GMT</small></p></td>
|
<td align="left"><p><small>Last revised: January 31, 2013 at 17:33:20 GMT</small></p></td>
|
||||||
<td align="right"><div class="copyright-footer"></div></td>
|
<td align="right"><div class="copyright-footer"></div></td>
|
||||||
</tr></table>
|
</tr></table>
|
||||||
<hr>
|
<hr>
|
||||||
|
@ -218,11 +218,11 @@ A bracket expression may contain any combination of the following:
|
|||||||
|
|
||||||
[h5 Single characters]
|
[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]
|
[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
|
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
|
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
|
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]
|
[h5 Negation]
|
||||||
|
|
||||||
If the bracket-expression begins with the ^ character, then it matches the
|
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=.
|
any character that is not in the range =a-c=.
|
||||||
|
|
||||||
[h5 Character classes]
|
[h5 Character classes]
|
||||||
|
Reference in New Issue
Block a user