Skip to content

Add documentation for case-sensitive code search / regex mode modifiers #34933

@victorlin

Description

@victorlin

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax

What part(s) of the article would you like to see updated?

I found out through StackOverflow that case-sensitive search can be accomplished with the (?-i) mode modifier. The official docs should note this instead of stating "You cannot do case-sensitive searches", which is not true.

Additionally, it would be nice if the section on regular expressions described which mode modifiers are supported by code search. There are many, and different flavors of regex are known to support different modifiers.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamsearch-githubRelated to GitHub search

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions