How to Use Google Search Console Regex

If you have been catching up with Google updates then it is likely that you must have come across this awesome news that Google Search Console has just about recently added “Custom Regex”.

Regex is something that we SEOs have been waiting for very very long.

Regex helps a great deal with SEO Automation. It saves a ton of time sifting through data and analyzing it on our dashboards.

Google Analytics already had it, and now it’s on Google Search Console too.

So it is all great news! but quick question?

How do we use it?

If you have this question in your mind, then you have come to the right place.

We will decode how to use custom regex in Google Search Console with use cases.

1. Find Search Queries that begins with a particular keyword/ keywords

search queries beginning with

A huge time saver.

Let’s say you want to find search queries on your Google Search Console Dashboard that begins with >1 keyword search string; with this custom regex, you can do that.

You have to add the regular expression (^) at the beginning of the query and apply.

Now check out the results that I got after I applied that.

begins with queries on gsc

You can only find search queries that begin with “social media” at the beginning of it, that too in that sequence only i.e. social and then media.

If I add the keyword social media in “queries containing” then it also shows queries like “guide to social media” which is not what I may want to see.

2. Find Search Queries that ends with a particular keyword or keywords

search queries ending with

Let’s say alternatively you want only those search queries that are ending with a specific keyword or specific keywords.

Well, you’ve got a regex (regular expression) for that too.

In the custom regex add the keywords and place ($) sign after that and apply.

Check out the results I got in this example.

queries ending with

As you can see in the above screenshot, it is only showing results that are ending with “digital marketing”

3. Find Search Queries with Brand Keyword along with it's misspelling

google search console regex

What if your business website gets a ton of branded searches along with its misspelling.

I mean practically even the misspelling is your branded keyword; it may seem frustrating finding out that 200 people are misspelling your brand keyword but none the less they have the branded search intent.

With this custom regex, you can find them in one search.

The custom regex for this is, brand name|misspelled brand name 1, and so on.

You can tie them all together with (|) this sign and get all the data at once.

4. Find Search Queries with 2 or more keywords in the search string

find search queries containing 2 or more keywords

Use this custom regex if you want to find search queries containing your defined two or more keywords in the search string.

They need not necessarily in the same order, but you will find only those search queries that contain both of those keywords.

Check out what results I got when I used this custom regex

2 keywords containing search queries

 

5. Find all search queries that are questions

find question queries on gsc

This tip is courtesy of Steve Troth, got to know about this one because of him.

And, boy this is so handy.

Imagine you are handling a huge e-commerce site that hasn’t leveraged Blogging yet.

You perform this custom regex and find all the questions people are searching for that are related to your products.

All at once!

The custom regex to find question queries is ^(who|what|where|why|how)[” “]

Just add that and you will get all the question search queries your site is appearing for.

Check out the results I got after I applied this custom regex.

question search queries

 

6. Find Queries with X number of words in it

find queries with more keywords

Now, this right here is a great hack to quickly find long tail keywords your website has.

The custom regex for this is → ([^” “]*\s){7,}?

By adding this and applying you will find queries having 8 or more keywords in the search string.

Check out the results I got by applying this regex.

long tail search queries gsc

In my opinion, custom regex is an ultimate time-saver for e-commerce SEO among others.

Stay tuned, I will add more regex use cases in this blog.

4 thoughts on “How to Use Google Search Console Regex”

  1. Hi Kunjal, is there a way to exclude queries with Regex in search console? For example exclude queries containing red|green

    Reply
    • Hey Hristina,

      That would indeed be a relief, but I checked into the query filtering out section and didn’t find a regex feature there, so for now I guess we don’t have that option.

      But if there is, then I will surely update that in the blog.

      Reply

Leave a Comment