3

I think it would be a great idea if we had a regular expression search engine, but can it be done? It seems impossible since there's no feasible way of indexing such a huge amount of data properly and displaying results in the order of relevance from what I can think of.

I'm curious what the answer to this one would be.

asked Apr 28, 2011 at 10:16
0

1 Answer 1

8

It can be done, and it has been done: http://www.google.com/codesearch

I think it is useful here because this is in a specific domain where the users might be expected to understand regexes. I suspect in general the feature is not that useful to the vast majority of Google users so there is probably no commercial reason to do it.

answered Apr 28, 2011 at 10:20
6
  • This is great but the source code on codesearch is a very tiny fraction of the web pages indexed by Google. I suspect there are some limitations because the commercial reason argument isn't that strong (they do have a number of useful keywords like site, filetype, intitle, inurl etc.). I think the load on their servers would be too great for regex searches. Commented Apr 28, 2011 at 10:48
  • 4
    If Google thought Regex would be useful to enough people they could scale. They scaled for instant answers, that was a huge effort. Search is worth billions of ,ドル if regex gave them an advantage they would do it, but 99% of users have no idea what a regex is, so it is simply not worth the effort. Commented Apr 28, 2011 at 10:50
  • Google doesn't shy away from throwing hardware at a problem. Commented Apr 28, 2011 at 12:04
  • 2
    Note that Google Code Search is being retired. Commented Nov 8, 2011 at 21:05
  • 2
    has been retired now! Commented Feb 9, 2012 at 11:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.