Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^3: ||= oddity

by why_bird (Pilgrim)
on May 29, 2008 at 08:44 UTC ( #688977=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://688977]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2023-05-31 11:07 GMT
Find Nodes?
    Voting Booth?

    No recent polls found