Skip to content

Commit 25f8c95

Browse files
authored
Added PCRE n (NO_AUTO_CAPTURE) modifier description. (#2598)
1 parent 8109567 commit 25f8c95

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

reference/pcre/pattern.modifiers.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,18 @@
174174
</simpara>
175175
</listitem>
176176
</varlistentry>
177+
<varlistentry>
178+
<term><emphasis>n</emphasis> (<literal>PCRE_NO_AUTO_CAPTURE</literal>)</term>
179+
<listitem>
180+
<simpara>
181+
This modifier makes simple <code>(xyz)</code> groups non-capturing.
182+
Only named groups like <code>(?&lt;name&gt;xyz)</code> are capturing.
183+
This only affects which groups are capturing, it is still possible to
184+
use numbered subpattern references, and the matches array will still
185+
contain numbered results.
186+
</simpara>
187+
</listitem>
188+
</varlistentry>
177189
</variablelist>
178190
</blockquote>
179191
</para>

0 commit comments

Comments
 (0)