Skip to content

std.regex: document backreferences in the syntax table#11034

Merged
0xEAB merged 1 commit into
dlang:masterfrom
kubo39:std-regex-document-backreferences
Jun 12, 2026
Merged

std.regex: document backreferences in the syntax table#11034
0xEAB merged 1 commit into
dlang:masterfrom
kubo39:std-regex-document-backreferences

Conversation

@kubo39

@kubo39 kubo39 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

The pattern syntax table listed named groups and referred to "direct numbers" in passing, but had no entry for backreferences themselves, making them look unsupported. Add a row describing \1, \2, ..., including the multi-digit case.

The pattern syntax table listed named groups and referred to "direct
numbers" in passing, but had no entry for backreferences themselves,
making them look unsupported. Add a row describing `\1`, `\2`, ...,
including the multi-digit case.
@kubo39 kubo39 requested a review from DmitryOlshansky as a code owner June 12, 2026 15:21
@dlang-bot

Copy link
Copy Markdown
Contributor

Thanks for your pull request and interest in making D better, @kubo39! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + phobos#11034"

@0xEAB 0xEAB merged commit 1b8f752 into dlang:master Jun 12, 2026
10 checks passed
@kubo39 kubo39 deleted the std-regex-document-backreferences branch June 12, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants