Search for code containing string

By default, it looks like the GitHub search matches only whole-words. So if I search for roo, code containing kangaroo won’t show up. Is there a way for search include any code containing the string, whether they’re whole words or not?


Hi @flow2k,

At this time, we don’t support substring search. That said, we’re always working to improve GitHub, and we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideration.

Please let me know if you have any other questions.


1 Like

Thanks nadiajoyce! It would be nice for the community to be able track the feature, but I guess that’s for another day. 

Please, please add substring search. It’s vital to negotiating repos of even moderate size and/or number.