28


I wanted to search my company's github source website using regular expressions. is that possible in anyway?

Salil Surendran
  • 2,245
  • 4
  • 27
  • 42
  • 2
    Possible duplicate of [Github search using regex](https://stackoverflow.com/questions/17595962/github-search-using-regex) – Nathan Wailes Oct 12 '17 at 22:38
  • This is now possible with [GitHub Code Search](https://cs.github.com/). – davidmyersdev Jun 06 '22 at 13:35
  • [GitHub Code Search Regular Expressions](https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax#using-regular-expressions) ... specific to _code_ searches. – marc-medley Jun 19 '23 at 23:56

2 Answers2

8

AFAIK you would need to set that up yourself. Github has its own search syntax with qualifiers you can add, but not full regex. The api uses the same syntax as the in-browser search.

ldg
  • 9,112
  • 2
  • 29
  • 44
5

The problem is that a GitHub search is limited to the master branch of your repos.

The easiest solution is to:

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250