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.

Answer from ldg on Stack Overflow
🌐
GitHub
github.com › orgs › community › discussions › 9824
Filter repos by regex · community · Discussion #9824
April 30, 2024 - Code search supports regular expressions to search for patterns in your code. You can use regular expressions in bare search terms as well as within many qualifiers, by surrounding the regex in slashes. GitHub Documentation.
Discussions

Can you use regular expressions on GitHub?
If you're searching in a specific repository, you can: Press . to go to github.dev/org/your-repository (VS Code in your browser) Search normally with "Use Regular Expression" enabled More on reddit.com
🌐 r/node
5
6
January 27, 2023
Support Regular expressions in advanced search and search API
External dumps fragment the ... OpenLibrary or not knowing where the links are divided between Github, Google Docs, etc. In the search API, add a parameter to indicate the search field is using regex rather than string.... More on github.com
🌐 github.com
3
March 10, 2023
Support RegEx in Repository Search (Filter)
Search or jump to... ... You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. ... There was an error while loading. Please reload this page. ... I suggest that when having / at the start and end of the "Filter" text box, the value should act like a RegEx... More on github.com
🌐 github.com
3
July 9, 2025
Show HN: Search code in GitHub repos using regular expressions
I'm the CTO @ GitHub. Would love to talk to you about this and other things we are building in this area at GitHub · Feel free to email direct to jason at github.com More on news.ycombinator.com
🌐 news.ycombinator.com
155
614
February 25, 2020
🌐
GitHub
github.com › internetarchive › openlibrary › issues › 7629
Support Regular expressions in advanced search and search API · Issue #7629 · internetarchive/openlibrary
March 10, 2023 - Currently as far as I can tell, search is using string matching and limited patterns, but doesn't support regular expression (regex) search in the advanced search or API. If this is supported, it is not documented at https://openlibrary.org...
Author   internetarchive
🌐
Flother
flother.is › til › github-repo-regex-case-insensitive-search
How to search a GitHub repo using regular expressions or case-sensitive matching — Flother
March 18, 2023 - One glitch in their current implementation is that regexes are only supported in the code search, so you’ll get zero matching results for issues, PRs, wiki pages, etc.
🌐
GitHub
github.com › janeklb › gh-search
GitHub - janeklb/gh-search: GitHub code search with full text regex filtering, from your cli. · GitHub
GitHub code search with full text regex filtering, from your cli. - janeklb/gh-search
Starred by 52 users
Forked by 4 users
Languages   Python 98.2% | Makefile 1.8%
Find elsewhere
🌐
GitHub
github.com › desktop › desktop › issues › 20745
Support RegEx in Repository Search (Filter) · Issue #20745 · desktop/desktop
July 9, 2025 - Search or jump to... ... You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. ... There was an error while loading. Please reload this page. ... I suggest that when having / at the start and end of the "Filter" text box, the value should act like a RegEx...
Author   desktop
🌐
GitHub
github.com › github › docs › blob › main › content › search-github › github-code-search › understanding-github-code-search-syntax.md
docs/content/search-github/github-code-search/understanding-github-code-search-syntax.md at main · github/docs
Code search supports regular expressions to search for patterns in your code. You can use regular expressions in bare search terms as well as within many qualifiers, by surrounding the regex in slashes.
Author   github
🌐
GitHub
github.com › orgs › community › discussions › 10039
Org wide path searches (with regex) do not return a list of all of the org's results · community · Discussion #10039
When I do a search like org:my-org path:my-path.txt /regex.* [0-9]/, I expect to see a list of all of the files in the org that fit the path spec and the regex. Instead, it seems to filter down to ...
🌐
Grep
grep.app
Code Search | Grep by Vercel
Effortlessly search for code, files, and paths across a million GitHub repositories.
🌐
GitHub
github.com › features › code-search
GitHub Code Search · GitHub
Search using regular expressions, boolean operations, keyboard shortcuts, and more.
🌐
GitHub
github.com › slevithan › awesome-regex
GitHub - slevithan/awesome-regex: 🦉 A curated collection of regex tools, tutorials, libraries, etc.
Regexper [GitLab] - Create railroad diagrams. Flavor: JavaScript. Search and replace through files.
Starred by 384 users
Forked by 15 users
🌐
GitHub
github.com › BurntSushi › ripgrep
GitHub - BurntSushi/ripgrep: ripgrep recursively searches directories for a regex pattern while respecting your gitignore · GitHub
ripgrep recursively searches directories for a regex pattern while respecting your gitignore - BurntSushi/ripgrep
Starred by 66.3K users
Forked by 2.6K users
Languages   Rust 94.9% | Python 2.5% | Shell 1.9%
🌐
GitHub
github.com › gwen001 › github-regexp
GitHub - gwen001/github-regexp: Basically a regexp over a GitHub search. · GitHub
$ github-regexp -h Usage of github-regexp: -i force the regexp to be case insensitive -k exit the program when all tokens have been disabled -r string regexp to search, default is SecLists secret-keywords list -s string search term you are looking for (required) -t string github token (required), can be: • a single token • a list of tokens separated by comma • a file (.tokens) containing 1 token per line if the options is not provided, the environment variable GITHUB_TOKEN is readed, it can be: • a single token • a list of tokens separated by comma
Starred by 69 users
Forked by 20 users
Languages   Go
🌐
Hacker News
news.ycombinator.com › item
Show HN: Search code in GitHub repos using regular expressions | Hacker News
February 25, 2020 - I'm the CTO @ GitHub. Would love to talk to you about this and other things we are building in this area at GitHub · Feel free to email direct to jason at github.com
🌐
Simon Willison
til.simonwillison.net › github › github-code-search-api-uses
Finding uses of an API with the new GitHub Code Search | Simon Willison’s TILs
December 8, 2022 - The GitHub Code Search beta is really powerful - it allows advanced search - including regular expression matches - against every public repo on GitHub.
🌐
GitHub
github.com › topics › regexp-search
regexp-search · GitHub Topics · GitHub
grep like utility to search text, PDF, docx, doc, odt, epub, rtf, dotx, docm, fodt, ott and pptx files for context and highlight using different colors ... The simple regex vietnamese program.
🌐
GitHub
github.com › topics › regexp
Build software better, together
ESLint plugin for finding regex mistakes and style guide violations.