BinocularsI was performing a search on Google. The results were over 300,000 for what I thought was a pretty specify query. Thanks to online glossaries, dictionaries, dungeons and dragons as well as World of Warcraft, I was inundated with copious amounts of useless data. In a bid to reduce the number of results, I started adding terms such as “-Wow”, “-warcraft”, “-game”, -”dictionary”, “-is better because” and so forth. That’s when I hit “The Wall.” There is a limit of 32 words for a Google search query. By the time I hit “The Wall,” I had reduced the search results from just over 300,000 to a little under 79,000. Still too many. Frustrated, I gave up sure that I would never find what I was looking for in a reasonable amount of time.

That’s when it hit me. Google has a calculator. It converts miles. For goodness sakes, it’s written by GEEKS! Could it be? Could I have an interesting idea?

I entered a new search query: “-WoW|Warcraft”. To my amazement, it worked. All sites with “warcraft” or “WoW” were filtered out. This told me that it accepts programming values (in programming, “|” typically means “or”). Curious, I entered a new query using regex. For those that don’t know, regex is short for “regular expressions.” Regular expressions are essentially filters that allow you specify what kind of text to look for by specifying a text pattern. An example would be “Bob” versus “bob”.

As an example for you, I generated a search about our favorite website. The search query uses the regex expression: ^dailycupofte$. This expression looks for “dailycupofte” and only that phrase and the results must contain results that begin and end with exactly that phrase. In other words, sites with “dailycupofte” will be returned but not “dailycupoftech”.

This particular example is only the beginning and only a simple display of the power you now have for searching. Here’s a starting point to learn regex.

Similar Posts:

If you found this post useful, why don't you buy me a cup of coffee to show your gratitude?