Skip to content

Update PREG_UNMATCHED_AS_NULL description for trailing groups#5272

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:fix/preg-unmatched-as-null-description
Open

Update PREG_UNMATCHED_AS_NULL description for trailing groups#5272
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:fix/preg-unmatched-as-null-description

Conversation

@lacatoire
Copy link
Copy Markdown
Member

@lacatoire lacatoire commented Feb 5, 2026

Fixes #3483

Update the flag description and add an example showing how trailing unmatched subpatterns behave with and without the flag.

@lacatoire lacatoire changed the title Clarify PREG_UNMATCHED_AS_NULL behavior for trailing groups Update PREG_UNMATCHED_AS_NULL description for trailing groups Mar 2, 2026
@lacatoire lacatoire closed this Mar 2, 2026
@lacatoire lacatoire reopened this May 13, 2026
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.

PREG_UNMATCHED_AS_NULL description

1 participant