3 ms·
Can't you use regexp to differentiate urls from search terms and only send search terms?
by MatthewPhillips 15y ago
Can't you use regexp to differentiate urls from search terms and only send search terms?
- m_myers 15y agoHow? Do you start all your URLs with "www"? I know I don't, so a regex couldn't possibly know until I typed either a space or a dot. On the other hand, if you could make this work, I'd love to see it.
- ninwa 15y agoPerhaps we could do the reverse? Provide search suggestions if the user explicitly tells us to by beginning their input with a special character. '?' perhaps. Alternatively, although not intuitive, if the user enters focus with the search bar through a specific key-stroke: CTRL + L for a regular URL entry, and re-route CTRL + K to our web-bar, but with suggestions.