views:

1775

answers:

4

When I search Google for "haskell ++ operator" or "ruby language @@", or anything similar, the punctuation often gets ignored completely. (However the punctuation in "c++" doesn't).

Is there a search engine or an option in Google somewhere that will allow me to search for things like this?

A: 

You can put quotes around it.

"Exact Thing To Search W/ cr@zy symb$$s"

I'd also check out the advanced search page.

Sneakyness
I don't think that works.. "haskell ++" still returns no relevent results.
unknown
"Haskell ++"'s first result is for http://www.haskell.org/. I don't think you can get more relevant.
Sneakyness
Spookily enough, google for "Exact Thing To Search W/ cr@zy symb$$s"... Recursion anyone?
MPritch
I can't help but smile. Gotta love it. Sad part is it will probably never be searched for outside of people who see this in the first place.
Sneakyness
It's finding the page you want, but that's because there's only one thing that matches after all the punctuation is dropped. With "unknown"'s query, dropping the special characters leaves a string with more irrelevant matches than relevant ones.
PanCrit
@Sneakyness Haskell.org is coming up because of the "Haskell". The "++" is being ignored entirely.
ceejayoz
Can you prove that though? :P
Sneakyness
+6  A: 

You can't, google removes the ++ and @@ as part of its stemming process when it is indexing the pages.

On the google faqs you have:

  • With some exceptions, punctuation is ignored (that is, you can't search for @#$%^&*()=+[]\ and other special characters).

Exceptions list

rjlopes
+2  A: 

Unfortunately I don't know of any web search engine that can do this (code search engines will work, but they'll only return code snippets).

Try to find alternate names for these operators. Queries like:

 haskell ("plusplus" | "plus plus operator")
 ruby language "double at"
 php "paamayim nekudotayim"

might work.

+1  A: 

Google Code Search lets you search by regex (including operator characters with \-escaping) and language filter. The code it searches is limited to opensource projects; but this should be plenty for finding examples of things.

bdonlan
Except you can't google for documentation with code search...
rassie