Google Code Search
This article needs to be updated.December 2018)(
Type of site
|Available in||All languages|
|Launched||October 5, 2006|
|Current status||Discontinued as of 15 January 2012|
Google Code Search was a free beta product from Google which debuted in Google Labs on October 5, 2006, allowing web users to search for open-source code on the Internet. Features included the ability to search using operators, namely lang:, package:, license:, and file:.
Regular expression engine
The site allowed the use of regular expressions in queries, which at the time was not offered by any other search engine for code. This makes it resemble grep, but over the world's public code. The methodology employed combines a trigram index with a custom-built, denial-of-service resistant regular expression engine.
Google Code Search supported POSIX extended regular expression syntax, excluding back-references, collating elements, and collation classes.
Languages not officially supported could be searched for using the file: operator to match the common file extensions for the language.
In January 2012, Russ Cox published an overview of history and the technical aspects of the tool, and open-sourced a basic implementation of a similar functionality as a set of standalone programs that can run fast indexed regular expression searches over local code.
- "Code Search for Google open source projects". Google Open Source Blog. Retrieved 2020-04-01.
- "Google Open Source". cs.opensource.google. Retrieved 2020-04-01.
- Russ Cox (January 2012). "Regular Expression Matching with a Trigram Index (or: How Google Code Search Worked)". Archived from the original on 2012-01-28. Retrieved 2012-01-26.
- "RE2: a principled approach to regular expression matching". Archived from the original on 2016-09-27. Retrieved 2016-09-24.
- Horowitz, Bradley (2011-10-14). "Official Blog: A fall sweep". Googleblog.blogspot.com. Archived from the original on 2011-11-23. Retrieved 2013-07-09.
- "Replacement for Google Code Search?". Stack Overflow. Archived from the original on 2017-11-09. Retrieved 2016-07-25.
- codesearch on GitHub