mirror of
https://github.com/boostorg/regex.git
synced 2025-07-01 14:50:58 +02:00
Update history and regenerate docs.
This commit is contained in:
@ -364,9 +364,14 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<p>
|
||||
Note that a back reference can also be a forward-reference to a sub-expression
|
||||
that has not yet been seen - this only really makes sense within a repeat,
|
||||
so for example <code class="computeroutput"><span class="special">(\</span><span class="number">2</span><span class="identifier">two</span><span class="special">|(</span><span class="identifier">one</span><span class="special">))+</span></code> will match "oneonetwo".
|
||||
</p>
|
||||
<p>
|
||||
Finally the \k escape can be used to refer to named subexpressions, for example
|
||||
<code class="literal">\k<two></code> will match whatever matched the subexpression
|
||||
<code class="literal">\k<two></code> will whatever matched the subexpression
|
||||
named "two".
|
||||
</p>
|
||||
<h5>
|
||||
|
Reference in New Issue
Block a user