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”.

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

Google Search Console 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 regular expressions, 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 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 performance report Dashboard that begins with >1 keyword search string; with this custom regex filter, 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 keywords 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. Here you are getting queries with the exact sequence of characters that you want.

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 terms that are ending with a specific keyword or specific keywords.

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

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

Check out the results I got in my performance report with 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 (regular expressions) filter, 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 keyphrases 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 Google Search Console Regular Expressions filter

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 terms 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

7. Find Organic Insights of Specific Pages

google search console regex match pages

What is the use case for this?

Let’s say you have written blogs on closely related topics and you wanna see how those blogs are collectively doing organic traffic-wise then this is the regex for you.

Like in the above example I have tracked organic insights specifically for Hostinger Review, WordPress Hosting and HostFizia hosting articles. Just these 3 articles and nothing else.

The regex I have used for this is → ^https://www.decodedigitalmarket.com/(hostinger-india-review|hostfizia-review|best-wordpress-hosting)/$

This regex captures the page you specify in circular brackets and pipe means this or that .

^ this symbol means starts with

$ this symbol means ends with; this regex formula gets these all to work so they produce the exact results that you want to see.

8. Find Short Tail Keywords that you are ranking for

The whole world is chasing Long-tail keywords, but what about Short tail keywords?

These are equally important to track.

And here is the regex to track this

^[\w\W\s\S]{1,10}$

This regex matches as follows

\w → matches word (alphanumeric & underscore)

\W → matches any character that is not a word

\s → matches whitespace characters

\S → matches any character that is not a whitespace

1,10 means we are capturing queries that are under 1-10 characters; you can even set 5 instead of 10 to capture even shorter queries.

Using this regex I discovered that I have captured clicks for short-tail keywords like Hostinger, Hostfizia, invideo etc.

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.

7 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