Skip to content

Search Console Regex:
5 Filters That Find Your Next Keywords

Five regex filters for Google Search Console that find long-tail searches, questions, near page-one queries and your brand share, with our own results.

5 min read

Navy and amber illustration of a laptop showing a search report with a filter applied

Key Points

  • This matches any query of four words or more.
  • ^(how|what|why|where|when|who|which|can|does|do|is|are|should)\b
  • Put your brand name and its common misspellings in the pattern, then switch between Matches regex and Doesn’t match regex.
  • Add two filters together: the long-tail pattern from Pattern 1 on Query, then sort by Average position and look at rows between 8 and 20.
  • (cost|price|pricing|how much|cheap|budget)
  • The same patterns work on the Page filter.

Search Console can filter your search queries and pages with regular expressions, and most site owners never use it. Five short patterns are enough to find your long-tail searches, the questions people ask before they find you, the searches that nearly reach page one, and how much of your traffic is only your own brand name. This tutorial gives each pattern, explains what it matches, and shows what it found when we ran it on our own site.

How to turn on a regex filter

  1. Open Search Console and go to Performance, then Search results.
  2. Click Add filter and choose Query (or Page to filter addresses).
  3. Open the drop-down and choose Custom (regex).
  4. Choose Matches regex, or Doesn’t match regex to exclude, and paste the pattern.

Four rules from Google’s own help page are worth knowing before you start:

  • Search Console uses RE2 syntax, a common form of regex that leaves out a few advanced features such as lookaheads.
  • A pattern matches anywhere in the query unless you anchor it with ^ for the start or $ for the end.
  • Matching ignores capitals by default. Put (?-i) at the start to make it case-sensitive.
  • To match several values, separate them with | and wrap them in brackets.

Pattern 1: your long-tail searches

\S+(\s+\S+){3,}

This matches any query of four words or more. Long searches are more specific, which usually means the person knows what they want. Change the 3 to 4 for five words or more.

On our site: 51 of our top 100 queries over 90 days had four words or more. Together they brought 516 impressions and 42 clicks.

Pattern 2: the questions people ask

^(how|what|why|where|when|who|which|can|does|do|is|are|should)\b

This matches queries that start with a question word. These are the searches AI answers and Google’s “People also ask” box pick up, and each one is a heading or a paragraph waiting to be written.

On our site: only 2 of our top 100 queries were questions, with 78 impressions between them. That told us we write too few pages that answer a question in its own words.

Pattern 3: how much traffic is only your brand

carril|cariil|carill

Put your brand name and its common misspellings in the pattern, then switch between Matches regex and Doesn’t match regex. The first shows people who already know you. The second shows everyone who found you by searching for something else, which is the number SEO is meant to grow.

On our site: 3 brand queries brought 60 clicks, more than every other query in our top 100 put together. Our search traffic is mostly people who already know our name, which is exactly why we are now working on service searches.

Pattern 4: searches close to page one

Add two filters together: the long-tail pattern from Pattern 1 on Query, then sort by Average position and look at rows between 8 and 20.

Pages sitting just below the first page are the cheapest wins in SEO. A better title, a clearer first paragraph or a few internal links can move them up.

On our site: 15 long-tail queries sat between positions 8 and 20, with 193 impressions. Several were for old off-topic posts about UAE car companies and jobs, which is one reason we removed those posts this month: they were close to page one for searches that never become clients.

Pattern 5: cost and comparison searches

(cost|price|pricing|how much|cheap|budget)
\b(vs|versus|alternative|alternatives)\b

These find people deciding what to buy. A cost search wants a figure; a comparison search wants a verdict. If either list is empty, as both nearly were for us, you have no pages for buyers who are close to choosing.

Filter pages, not only queries

The same patterns work on the Page filter. Two useful ones:

/blog/
/services/

Compare the clicks for each, and you see how much of your search traffic reaches the pages that sell. Add ^https://www\.example\.com/fr/ to see one language at a time.

Common mistakes

  • Forgetting that matching is partial. seo also matches “seo jobs” and “seo salary”. Add \b around a word, or anchor with ^ and $, when you mean the whole query.
  • Copying patterns from other tools. Some regex features, such as lookaheads, do not work in RE2. If a pattern returns nothing, simplify it.
  • Reading a small sample as a trend. A query with 5 impressions tells you little. Look at the patterns across many queries.

What to do with what you find

Turn each list into one action:

What you found What to do
Long-tail queries Make sure one page answers each group of them clearly
Questions Add the question as a heading and answer it in the first sentence under it
Brand share Track the non-brand number every month; that is your SEO result
Near page one Improve the title and first paragraph of those pages first
Cost and comparison Write the pages buyers need before they choose

If you would like a team to run this for you every month, with the results in one place, our SEO service does exactly that and reports it in your Carril portal.

Sources

  • Google Search Console Help, “Performance report (Search results): Advanced filtering and comparison”: support.google.com/webmasters/answer/17011165
  • Our own figures: Carril Agency’s Search Console data for the 90 days to 18 November 2026, top 100 queries, read in the Carril portal.

Frequently Asked Questions

Does Google Search Console support regex?

Yes. In the Performance report, add a Query or Page filter and choose Custom (regex). Search Console uses the RE2 syntax.

Is the Search Console regex filter case-sensitive?

No, not by default. Start the pattern with (?-i) to make it case-sensitive.

How do I exclude my brand name in Search Console?

Add a Query filter, choose Custom (regex), select Doesn’t match regex, and enter your brand name and its misspellings separated by a vertical bar.

How do I find question keywords in Search Console?

Use a Query filter with the pattern ^(how|what|why|where|when|who|which|can|does|do|is|are|should)\b to show queries that start with a question word.

Why does my regex filter return nothing?

RE2 does not support some features, such as lookaheads and backreferences. Simplify the pattern, test it on one query you know exists, and remember that matching is partial unless you anchor it.

Tell us what you are building.

Scope, cost, and timeline, mapped with you.

Book a Free Call

Trusted by 150+ teams worldwide