Search code examples
github

GitHub Search: How to search for "C++" or simply "+" in issue content on GitHub?


After trying several methods of searching for the term: "c++" (case insensitive) in a GitHub repository's issues, I've discovered that it only wants to return anything with "c" in it. I've even found that searching for just "++" yields no results whatsoever. GitHub's help has also not been very helpful in this search.

Is there a way to coax GitHub into escaping the +s so as to return such a string with non alpha-character symbols that may normally be considered operators?


Solution

  • Use the search /c\+\+/. The outer forward slashes indicate a regex search, and the backslashes are escaping the plusses since they are special characters in regex.