Home > IT > Googe Code Search

Googe Code Search

October 5th, 2006 Leave a comment Go to comments

I've got a post coming.. it's just taking a little longer to write than expected... In the mean time I had to share this... Google Labs has launched Google Code Search. There are plenty of search options... You can provide a regex or a string and you can filter based on license, language, filename and package name... It looks like it could prove very useful.

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

Peace,
HT

Categories: IT Tags:
  1. No comments yet.
  1. No trackbacks yet.