Skip to content

Conversation

@kashish2710
Copy link
Contributor

This PR fixes an incorrect regex modifier syntax in the "Types" table
on the Groups and Backreferences guide.

The modifier group was incorrectly shown as (?:flags-flags:x),
which does not apply flags. The correct syntax is (?flags-flags:x).

Fixes #42609

@kashish2710 kashish2710 requested a review from a team as a code owner January 3, 2026 05:37
@kashish2710 kashish2710 requested review from Josh-Cena and removed request for a team January 3, 2026 05:37
@github-actions github-actions bot added Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed labels Jan 3, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2026

@kashish2710
Copy link
Contributor Author

Hi, I have corrected the modifier syntax in the Groups and Backreferences table. I reviewed the regex patterns and updated the syntax to match the correct JavaScript standards. Could you please review it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regular Expression Guide, page on Groups and Backreferences: "Types" section suggests wrong syntax for "Modifier" ("local flags")

1 participant