-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Description
MDN URL
What specific section or headline is this issue about?
anchor: #types, heading text: "Types"
What information was incorrect, unhelpful, or incomplete?
The Types section provides a table listing all the different group types, along with their name and a link to details about the type.
The 4th row reads:
(?flags:x), (?:flags-flags:x) | Modifier: Enables or disables the specified flags only to the enclosed pattern. Only the i, m, and s flags can be used in a modifier.
What did you expect to see?
The link to the Modifier leads to:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Modifier
on that page the syntax is given as:
(?flags1:pattern)
(?flags1-flags2:pattern)
It seems that the syntax given in the main page:
(?:flags-flags:x)
is wrong - first colon should not be there.
Do you have any supporting links, references, or citations?
Yes, the page that is linked to gives the Modifier syntax:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Modifier
which does not match the syntax given in the main page.
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/javascript/guide/regular_expressions/groups_and_backreferences - MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions/Groups_and_backreferences
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/javascript/guide/regular_expressions/groups_and_backreferences/index.md
- Last commit: fad67be
- Document last modified: 2025-07-08T13:18:45.000Z