Skip to content

[Sync-En] pcre: describe PREG_UNMATCHED_AS_NULL for trailing groups - #1100

Merged
julionc merged 1 commit into
php:masterfrom
lacatoire:sync-en/1061-pcre-unmatched-as-null
Aug 26, 2026
Merged

[Sync-En] pcre: describe PREG_UNMATCHED_AS_NULL for trailing groups#1100
julionc merged 1 commit into
php:masterfrom
lacatoire:sync-en/1061-pcre-unmatched-as-null

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Sync with EN commit cdbe6f9826baecd4a6c05f1c95ea47d1d8f32551 (php/doc-en#5272).

  • Document that trailing unmatched subpatterns are omitted from $matches unless the flag is set
  • Extend the preg_match() example and its output accordingly
  • Add the 7.4.0 changelog row

Fixes: #1061

@julionc
julionc merged commit 8bc1606 into php:master Aug 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sync EN] pcre: describe PREG_UNMATCHED_AS_NULL for trailing groups (#5272)

2 participants