Googe Code Search Engine Goes Live !!!

dipdude

Forerunner
Google Code Search helps you find function definitions and sample code by giving you one place to search publicly accessible source code hosted on the Internet. With Google Code Search, you can:
  • Use regular expressions to search more precisely
  • Restrict your search by language, license or filename
  • View the source file with links back to the entire package and the webpage where it came from


FAQ's -

1. What kind of code are you crawling?

We're crawling as much publicly accessible source code as we can find, including archives (.tar.gz, .tar.bz2, .tar, and .zip), CVS repositories and Subversion repositories.

2. What regexp syntax does Code Search support?

Google Code Search supports POSIX extended regular expression syntax, excluding backreferences, collating elements, and collation classes. To search for a space character, escape it with a backslash, as in hello,\ world. You can search for literal strings by enclosing the strings in quotation marks, as in "hello, world". We also support Perl extensions \d, \D, \s, \S, \w, and \W.

3. How do I restrict by language, license or filename?

You can either use the Advanced Code Search page or use our operators. Our operators include:
The lang: operator, which restricts by programming language (e.g., lang:"c++", -lang:java, or lang:^(c|c#|c\+\+)$)
The license: operator, which restricts by software license (e.g., license:apache, -license:gpl, or license:bsd|mit)
The package: operator, which restricts by package URL (e.g., package:"www.kernel.org" or package:\.tgz$)
The file: operator, which restricts by filename (e.g., file:include/linux/$ or -file:\.cc$)
The argument to each of these operators can be either a quoted literal string or a regular expression. As illustrated in some of the examples above, each of the operators can be used as a negative by placing a minus sign ("-") in front of it.

4. Can I add Google Code Search results to my website, IDE or application?

Yes. Code Search results are available via a GData/XML feed, and we encourage you to help create IDE plugins and add Google Code Search to your site.

 
Back
Top