# Search Console regex: seven useful filters, tested on our own data

> Search Console regex explained: how the RE2 filter works, what it can't do, and seven tested patterns for questions, brand, AI prompts, and URL groups.

Source: https://contengi.com/blog/search-console-regex
Author: Stefan Maritz
Published: 2026-11-19

Seven Search Console regex filters worth saving, with what each one turned up in our own 90 days of data.

**TL;DR**

-   A Search Console regex filter lets you group queries or URLs by pattern in the Performance report: open + Add filter, pick Query or Page, choose Custom (regex), and use Matches regex or Doesn't match regex.
-   Search Console uses [RE2 syntax with partial, case-insensitive matching by default](https://support.google.com/webmasters/answer/17011165?hl=en), so add ^ or $ to anchor a pattern and (?-i) when case counts.
-   RE2 has [no lookaheads, lookbehinds, or backreferences](https://github.com/google/re2/wiki/Syntax), so use Doesn't match regex wherever you would reach for (?!...).
-   Seven patterns do most of the work for a small team: questions, long queries, AI-prompt-shaped queries, brand, comparison intent, stale years, and URL groups.
-   On contengi.com, queries of 10 words or more earned 4,837 impressions and zero clicks in 90 days, and a lot of them read like pasted AI prompts.

The Performance report in Search Console is a filing cabinet with one drawer open at a time. Filter by one query and you see one query. Regex opens every drawer that matches a pattern, which is how you turn thousands of rows of noise into a handful of groups you can act on.

This guide covers how the filter works, the RE2 rules that trip people up, and seven patterns I run on contengi.com, each with what it turned up in our last 90 days of data.

## How do you use regex in Google Search Console?

Open Performance, then Search results, and click + Add filter. Choose Query or Page, switch the dropdown to [Custom (regex), enter the expression, and pick Matches regex or Doesn't match regex](https://support.google.com/webmasters/answer/17011165?hl=en). Click Apply and every table, chart, and total in the report now follows the pattern.

Multiple values go inside brackets with a vertical bar between them, such as `(pricing|cost|price)`. You can stack a query filter and a page filter, which is the fastest way to see which questions land on one section of your site.

## What regex syntax does Search Console support?

Search Console runs RE2, Google's own engine, and five rules decide whether your pattern does what you expect.

Rule

What it means

What to do

Partial match

A pattern matches anywhere in the query or URL

Use ^ for the start and $ for the end

Case-insensitive

AAA and aaa match the same rows

Start with (?-i) for case-sensitive URLs

No lookarounds

(?!...), (?=...), and their lookbehind cousins fail

Use Doesn't match regex instead

No backreferences

\\1 and named backreferences fail

Write the repeated part out in full

Escape symbols

A dot matches any character

Write \\. for a real dot, \\? for a question mark

The lookaround limit is the one that breaks patterns copied from other tools. RE2 lists [every lookahead and lookbehind form as not supported](https://github.com/google/re2/wiki/Syntax), so exclusions always run through the Doesn't match regex option.

## Which Search Console regex filters are worth saving?

These seven runs on contengi.com every month. The results cover 21 August to 19 November 2026, against site totals of 302 clicks and 68,864 impressions.

Pattern

Finds

What it showed on contengi.com

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

Question queries

5,099 impressions, 2 clicks, position 11.2

`^([^ ]+ ){9,}`

Queries of 10 words or more

4,837 impressions, 0 clicks, position 7.1

`about me:|question:|asking as:`

Pasted AI prompts

Nine queries, 35 impressions

`conten?gi|contengy|contengie`

Brand and misspellings

53 clicks from 568 impressions

`\b(vs|versus|alternatives?|compare|comparison)\b`

Comparison intent

"airops alternative" at position 21.4

`\b20(25|26|27)\b`

Queries with a year

2025 queries still earning impressions

`/blog/[^/]*(alternatives|-vs-)`

One group of URLs (Page filter)

Every alternatives and versus post in one view

### Question queries

The \\b after the list stops "is" from matching "isolate" and "do" from matching "docs". This view doubles as an FAQ backlog. Sort by impressions, and any question sitting at position eight to 15 with no clean answer on your page is next month's edit.

### Long queries and pasted AI prompts

This one surprised me. Queries of 10 words or more sat at an average position of 7.1 and produced zero clicks across 4,837 impressions. Reading the rows, a lot of them aren't written like searches at all. They start with "about me:", carry whole persona descriptions, or end with "asking as: content strategist".

They read like prompts built for an AI assistant and sent through Google. I can't prove what sends them, and my best guess is LLM tracking tools and AI agents running their prompt sets. Either way, they inflate impressions and drag down click-through rate, so I report the site with them excluded using Doesn't match regex, and I read them separately as a free look at the kind of prompts [LLM brand tracking tools](https://contengi.com/blog/top-tools-for-llm-brand-tracking) send about my category.

### Brand and non-brand

Brand traffic is the easiest split and the one that changes every report. Run the brand pattern with Matches regex, then the same pattern with Doesn't match regex, and you have two numbers that tell different stories. Google also added a [branded queries filter, available to all eligible sites since 11 March 2026](https://developers.google.com/search/blog/2025/11/search-console-branded-filter). Use it where you have it, and keep the regex when you want to decide exactly which spellings count as brand.

### Comparison intent and stale years

Comparison queries are bottom of the funnel, so a versus query on page two is worth more than a question query on page one. The year filter is a refresh trigger: any query that still carries last year gets the page re-dated and re-checked, which is the cheapest fix in [content decay](https://contengi.com/blog/content-decay).

### URL groups

Switch the filter to Page and regex groups whole sections. On our site the alternatives pattern put every comparison post on one screen, and it showed one page with 2,788 impressions at position nine and zero clicks. Zero clicks at position nine points at the title and meta description first, and no amount of query filtering would have shown it as fast.

## Why do Search Console regex totals look wrong?

Filtered totals and row sums rarely match. Filtering by query or URL [affects report totals because of data truncation and anonymised queries](https://support.google.com/webmasters/answer/17011165?hl=en) left out of the rows. Compare a filtered view with another filtered view, never with the unfiltered site total.

Row limits bite too. The Search Console API returns [1,000 rows by default and up to 25,000 per request](https://developers.google.com/search/blog/2022/10/performance-data-deep-dive), with paging beyond that. If a pattern returns a long tail, pull it through the API or a connector such as a [Google Search Console MCP](https://contengi.com/blog/google-search-console-mcp) in Claude.

## How to build your regex routine this week

1.  **Save the brand pattern first.** Add every spelling and misspelling of your name you can find in the Queries table, then run it both ways.
2.  **Exclude the prompt-shaped queries.** Run the 10-word pattern, read 20 rows, and add any repeated phrase like "about me:" to a Doesn't match regex filter.
3.  **Pull the question list.** Export questions at position eight to 15 and answer them on the page that already ranks.
4.  **Check last year's dates.** Run the year pattern each January and refresh every page that still carries the old year.
5.  **Group your URLs by section.** One page pattern per content type tells you which kind of post earns clicks, and spots [keyword cannibalisation](https://contengi.com/blog/keyword-cannibalization) when two URLs in a group rank for the same query.

Keep the patterns in a shared note so everyone on the team reports from the same definitions. If you would rather ask than type, compare the [AI tools for Search Console analysis](https://contengi.com/blog/ai-tools-for-google-search-console-analysis) that read the data for you.

## Frequently asked questions

### How do I filter Search Console with regex?

In Performance, click + Add filter, choose Query or Page, and switch to Custom (regex). Enter your pattern, pick Matches regex or Doesn't match regex, and click Apply. Search Console uses RE2 syntax with partial, case-insensitive matching by default.

### Does Search Console regex support negative lookahead?

No. RE2 does not support lookaheads, lookbehinds, or backreferences. Use the Doesn't match regex option to exclude queries or URLs, and stack a second filter when you need to include one pattern and exclude another.

### How do I find question queries in Search Console?

Use a Query filter with `^(who|what|where|when|why|how|which|is|are|can|does|do|should)\b`. The caret anchors the word to the start of the query and \\b stops partial words from matching. Sort the result by impressions to find the questions worth answering.

### Is Search Console regex case-sensitive?

No, matching is case-insensitive by default. Start the pattern with (?-i) when case counts, which mostly applies to URLs with capital letters in the path.

### Why does Search Console show long queries with no clicks?

On contengi.com, a lot of queries of 10 words or more read like AI prompts, with persona text such as "about me:" or "asking as:". They earned 4,837 impressions and zero clicks in 90 days. Exclude them with Doesn't match regex when you report click-through rate.
