mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Add support for PCRE n modifier
Add support for /n (NO_AUTO_CAPTURE) modifier, which makes simple `(xyz)` groups non-capturing. Closes GH-7583.
This commit is contained in:
parent
90b7bde615
commit
e089a50f53
3 changed files with 33 additions and 0 deletions
|
@ -734,6 +734,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache_ex(zend_string *regex, in
|
|||
/* Perl compatible options */
|
||||
case 'i': coptions |= PCRE2_CASELESS; break;
|
||||
case 'm': coptions |= PCRE2_MULTILINE; break;
|
||||
case 'n': coptions |= PCRE2_NO_AUTO_CAPTURE; break;
|
||||
case 's': coptions |= PCRE2_DOTALL; break;
|
||||
case 'x': coptions |= PCRE2_EXTENDED; break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue