Skip to content

Conversation

GianmarcoCuppari
Copy link

Fixes #56752

Added "See also" sections to the following regex function docstrings:
- `match`: links to eachmatch, occursin, findfirst
- `eachmatch`: links to match, findall, count
- `count`: links to eachmatch, occursin, findall
- `startswith`: links to endswith, occursin, match
- `endswith`: links to startswith, occursin, match

- Add cross-references between match, eachmatch, count
- Add cross-references between startswith and endswith
- Link related functions like occursin, findfirst, findall
- Addresses JuliaLang#56752
@LilithHafner LilithHafner added the docs This change adds or pertains to documentation label Oct 5, 2025
@LilithHafner
Copy link
Member

Thanks!

Copy link
Member

@LilithHafner LilithHafner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor change and then LGTM!

```
# See also
[`endswith`](@ref), [`occursin`](@ref), [`match`](@ref)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding match is a good idea, though it just needs to be added to the existing see also section above.

Same for the endswith docstring below

@LilithHafner LilithHafner assigned LilithHafner and unassigned vtjnash Oct 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "See also" to the regex function docstrings
3 participants