Thursday, 05 October 2006

Google Labs has deployed Google Code Search, which allows regular expressions to be used to search public source code on the Internet. You can also restrict searches by language, license or filename. Earlier this year, Krugle launched a source code search engine, too. I'll need to think about the potential IP, license and security implications of this (there are many software licenses being used in the world, so how do they respect those that don't allow republication, for example, or what if they don't detect a license in the crawl?), but I suppose if it's out there, it's out there. At any rate, it's interesting what you can do. I bet a lot of people will get a lot of mileage out of this:

Google crawls as much publicly accessible source code as their system can find, including archives (.tar.gz, .tar.bz2, .tar, and .zip), CVS repositories and Subversion repositories. And there's also a GData API available to allow mashup apps access to the functionality.

Syntax and Examples (more about regexp syntax)

regexp
Search for a regular expresion
go{2}gle hello,\ world ^int printk

"exact string"
Search for exact string
"compiler happy"

file:regexp
Search only in files or directories matching regexp
file:\.js$ XMLHttpRequest file:include/ ioctl
file:/usr/sys/ken/slp.c "You are not expected to understand this."

package:regexp
Search packages with names matching regexp.
(A package's name is its URL or CVS server information.)
package:perl Frodo package:linux-2.6 int\ printk

lang:regexp
Search only for programs written in languages matching regexp
lang:lisp xml lang:"c++" sprintf.*%s

license:regexp
Search only for files with licenses matching regexp.
license:bsd int\ printf -license:gpl quicksort

(via Google Blogoscoped)



Add/Read: Comments [0]
Tech
Thursday, 05 October 2006 06:00:53 (Pacific Standard Time, UTC-08:00)
#  Trackback

Referred by:
http://www.total-articles-databaseonline.info/2012/04/09/Dir... [Referral]
http://search.daum.net/ [Referral]
http://www.jewelrymart86.com/ [Referral]
http://tia.org.ua/user/coolpainter/ [Referral]
http://forums.smartcompany.net/member.php?u=169453 [Referral]
http://bakatenshi.projectithera.com/profile.php?id=437176 [Referral]
http://www.wourl.com/story.php?title=toolbar-icons [Referral]
http://monblanc-elit.ru/user/webdesigner/ [Referral]
http://guest.000a.biz/user/rimbaudimages/ [Referral]
http://tor4.su/phpBB/profile.php?mode=viewprofile&u=26868&mf... [Referral]
http://www.gsmegypt.info/vb/member.php?162595-loulmituamp [Referral]
http://zomoojon859.livejournal.com/ [Referral]
http://ricrudur.livejournal.com/ [Referral]
http://etykujayyne.livejournal.com/ [Referral]
http://oskarfrank.livejournal.com/ [Referral]
http://protagoruy.livejournal.com/ [Referral]
http://peberbahy.livejournal.com/ [Referral]
http://www.wow-cataclysm.info/forums/memberlist.php?mode=vie... [Referral]
http://www.clubvenox.com.ar/foro//ucp.php?mode=register&copp... [Referral]
http://memori.ru/tmpatronagesx27/account/?&page=&perpage=100 [Referral]
21 (www.viraldir.com) [Referral]

More...
Comments are closed.