Google has a new service for searching source code that is publicly available in .zip, .tar.gz files or even in repositories such as CVS or Subversion.
The search can be constrained e.g. by language or even by license (GPL, BSD etc.). The use of regular expressions is possible, too.
By the way, comments are included in the search of course, so have fun ;)