http://qs1969.pair.com?node_id=688977


in reply to Re^2: ||= oddity
in thread ||= oddity

Yea me too, excellent. *veers off on a tangent* I've often wondered why Google doesn't allow regular expressions, or even most symbols in their regular search. Any ideas?
........
Those are my principles. If you don't like them I have others.
-- Groucho Marx
.......

Replies are listed 'Best First'.
Re^4: ||= oddity
by moritz (Cardinal) on May 29, 2008 at 08:50 UTC
    Performance and convenience.

    I think that indexes work far better for constant strings than for regular expressions, and the regular search has a much larger index. It also means that they don't have to index non-word-characters, many of which are garbage anyway (programming languages being an exception, for which the code search was made).

    Convenience because you want to be able to search for CoolProduct, even if the official name is CoolProduct!. And usually you want an exact phrase to match even if some punctuation differs.