Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github search using regex

Tags:

git

regex

github

Is there any way to search code in a github repo using regular expressions?

Currently, I clone the repo and search.

But I want to type something like

s/foo/gi

and find all occurances of foo in the code:

foo.create
foo.extend
fooBar
barFoo
bar.foo

Is this possible? Am I missing something in the docs?

like image 919
Dan Williams Avatar asked Jan 31 '26 14:01

Dan Williams


1 Answers

This is now possible with GitHub Code Search.

like image 122
David R. Myers Avatar answered Feb 02 '26 03:02

David R. Myers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!