Skip to content

Documentation: str_extract help page should mention str_match in "See Also" #93

@DarwinAwardWinner

Description

@DarwinAwardWinner

I was looking for the function to extract capture groups from a regex match, and my first guess was str_extract. I quickly figured out from the help page that this was the wrong choice though. Eventually, I found that the correct one was str_match. But it would have been a lot easier to find if str_extract had led me there by mentioning it in the "See also" section. I think a lot of people probable make the same mistake, finding str_extract when they're looking for str_match, since it's not clear from the names alone which one returns capture groups and which one only returns the complete match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions