forked from boostorg/regex
Documentation fix for backreferences example. Fixes issue #33.
This commit is contained in:
@ -191,7 +191,7 @@ cab
|
|||||||
is in the range 1-9, matches the same string that was matched by sub-expression
|
is in the range 1-9, matches the same string that was matched by sub-expression
|
||||||
<span class="emphasis"><em>n</em></span>. For example the expression:
|
<span class="emphasis"><em>n</em></span>. For example the expression:
|
||||||
</p>
|
</p>
|
||||||
<pre class="programlisting">^(a*).*\1$</pre>
|
<pre class="programlisting">^(a*)[^a]*\1$</pre>
|
||||||
<p>
|
<p>
|
||||||
Will match the string:
|
Will match the string:
|
||||||
</p>
|
</p>
|
||||||
|
@ -161,7 +161,7 @@ aaaa
|
|||||||
is in the range 1-9, matches the same string that was matched by sub-expression
|
is in the range 1-9, matches the same string that was matched by sub-expression
|
||||||
<span class="emphasis"><em>n</em></span>. For example the expression:
|
<span class="emphasis"><em>n</em></span>. For example the expression:
|
||||||
</p>
|
</p>
|
||||||
<pre class="programlisting">^\(a*\).*\1$</pre>
|
<pre class="programlisting">^\(a*\)[^a]*\1$</pre>
|
||||||
<p>
|
<p>
|
||||||
Will match the string:
|
Will match the string:
|
||||||
</p>
|
</p>
|
||||||
|
@ -268,7 +268,7 @@
|
|||||||
is in the range 1-9, matches the same string that was matched by sub-expression
|
is in the range 1-9, matches the same string that was matched by sub-expression
|
||||||
<span class="emphasis"><em>n</em></span>. For example the expression:
|
<span class="emphasis"><em>n</em></span>. For example the expression:
|
||||||
</p>
|
</p>
|
||||||
<pre class="programlisting">^(a*).*\1$</pre>
|
<pre class="programlisting">^(a*)[^a]*\1$</pre>
|
||||||
<p>
|
<p>
|
||||||
Will match the string:
|
Will match the string:
|
||||||
</p>
|
</p>
|
||||||
|
@ -221,7 +221,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: February 24, 2017 at 13:14:00 GMT</small></p></td>
|
<td align="left"><p><small>Last revised: July 30, 2017 at 17:49:38 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>
|
||||||
|
@ -106,7 +106,7 @@ An escape character followed by a digit /n/, where /n/ is in the range 1-9,
|
|||||||
matches the same string that was matched by sub-expression /n/. For example
|
matches the same string that was matched by sub-expression /n/. For example
|
||||||
the expression:
|
the expression:
|
||||||
|
|
||||||
[pre ^\\(a\*\\).\*\\1$]
|
[pre ^\\(a\*\\)\[\^a\]\*\\1$]
|
||||||
|
|
||||||
Will match the string:
|
Will match the string:
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ An escape character followed by a digit /n/, where /n/ is in the range 1-9,
|
|||||||
matches the same string that was matched by sub-expression /n/. For example
|
matches the same string that was matched by sub-expression /n/. For example
|
||||||
the expression:
|
the expression:
|
||||||
|
|
||||||
[pre ^(a\*).\*\\1\$]
|
[pre ^(a\*)\[\^a\]\*\\1\$]
|
||||||
|
|
||||||
Will match the string:
|
Will match the string:
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ An escape character followed by a digit /n/, where /n/ is in the range 1-9,
|
|||||||
matches the same string that was matched by sub-expression /n/. For example
|
matches the same string that was matched by sub-expression /n/. For example
|
||||||
the expression:
|
the expression:
|
||||||
|
|
||||||
[pre ^(a\*).\*\\1$]
|
[pre ^(a\*)\[\^a\]\*\\1$]
|
||||||
|
|
||||||
Will match the string:
|
Will match the string:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user