15

Is there any possibility to search github repos for strings containing a special characters (e.g. "example.com" or "Example: ").
As far as I know Github's search does not support it and Google ignores this as well.

Thanks in advance.

Tim P
  • 387
  • 5
  • 14

2 Answers2

16

The GitHub Help says :

You can't use the following wildcard characters as part of your search query: . , : ; / \ ` ' " = * ! ? # $ & + ^ | ~ < > ( ) { } [ ]. The search will simply ignore these symbols.

Alternatively, you can git clone some repositories and grep them.

Ortomala Lokni
  • 48,718
  • 17
  • 164
  • 211
  • 2
    Thanks for that! Anyway a possibility to search for these strings faster in online repos without cloning them would be great, but I'm afraid there's no search engine doing this. – Tim P Jan 08 '17 at 10:36
-2

One way of doing this is to use a space instead of the character and put your search term in quotes. It will give you the closest results. I had a library call sg.createNode so I've searched for "sg createNote" which mostly returned results include sg.createNote

user1767754
  • 21,126
  • 14
  • 125
  • 152
  • For the record this solution did help me accomplish what I needed to regardless of Github's search limitations. Maybe this would have been better suited as a comment to the original question instead of an answer? – MawrCoffeePls Jan 15 '21 at 19:18