Google Code Search の検索オプション

Googleソースコードの検索ができるようになった。FAQによれば、公開されているCSVSubversionリポジトリ、Tarなどのアーカイブ中のファイルも検索対象となっているようだ。

screenshot

検索に際して以下のようなオプションの指定が可能:

  書式 サンプル
正規表現 regexp go{2}gle hello,\ world ^int printk
文字列(厳密な) "exact string" "compiler happy"
ファイル名 file:regexp file:\.js$ XMLHttpRequest file:include/ ioctl
パッケージ名 package:regexp package:linux-2.6 int\ printk
言語 lang:regexp lang:lisp xml lang:"c++" sprintf.*%s
ライセンス license:regexp license:bsd int\ printf -license:gpl quicksort

詳細は、FAQを参照。