Back to Blog
AI SEO Tracking · Tactical

GSC regex for AI queries — the filter every B2B needs

The exact Google Search Console regex to isolate AI-shaped queries, plus 4 additional patterns to segment your AIO exposure. Copy-paste ready. 5-minute setup.

The exact Google Search Console regex to isolate AI-shaped queries is ^(what|how|why|when|which|is|are|does|can|should)\b.* — apply it as a custom Query filter with the Matches regex option. This isolates question-shaped queries — the ones AI Overviews and AI Mode preferentially surface — from your general query stream. WebFlur runs this filter on every B2B GSC we audit; it is the fastest AI-search signal you can extract from free tools.

GSC does not have a native "AI query" filter, and it never will — Google does not label queries that way. But question-shaped queries have an 80%+ overlap with the queries AI Overviews and AI Mode actually surface, and question-shape is trivially detectable with regex. Below is the exact setup, 4 additional patterns for narrower segments, and the impressions-vs-clicks matrix that tells you what the numbers mean.

The exact regex to copy-paste

Copy this string exactly:

^(what|how|why|when|which|is|are|does|can|should)\b.*

Anatomy: ^ anchors to the start of the query. The alternation group captures the 10 most common English question-opening words (covering ~85% of question-shaped B2B queries per an internal WebFlur sample). \b is a word boundary so "whatabout" would not match but "what about" would. .* matches the rest of the query.

Two conscious trade-offs: (a) it's English-only — for multilingual B2B sites, add localized alternations (qué / cómo for Spanish, quel / comment for French, etc.); (b) it under-matches queries phrased as noun-shaped searches ("AI SEO pricing") that AIO still often surfaces for. Both are addressed by the additional patterns below.

Step-by-step: setting up the filter in GSC

Total setup time: about 5 minutes. Done once, gives you a permanent bookmarked view.

  1. Open GSC Performance → Search results. Set date range to Last 90 days for enough signal.
  2. Click +New → Query → Custom (regex).
  3. Paste the regex ^(what|how|why|when|which|is|are|does|can|should)\b.* into the filter box.
  4. Ensure Matches regex is selected (not the default Contains). Apply.
  5. Bookmark the resulting URL — the filter is URL-encoded, so the bookmark preserves the view. Open it weekly.

Optional but recommended: name the bookmark descriptively (e.g. "GSC — AI-shaped queries, 90d") so you can share it with the team. If GSC feels slow with the regex applied, drop the date range to Last 28 days first — the filter is CPU-intensive on very large query sets.

4 additional regex patterns for narrower segments

The primary regex above is the broad AI-shape filter. The four below segment further — use them when you need a specific slice of AIO exposure.

Pattern 1 — Long-tail question queries only (5+ words)

^(what|how|why|when|which|is|are|does|can|should)\b.*\s+\S+\s+\S+\s+\S+.*

Filters the primary set down to queries with at least 5 words — the "long-tail" AIO surface. These are where B2B intent is highest and where competitor coverage is thinnest.

Pattern 2 — Comparison queries ("X vs Y", "best X for Y")

^(best|top|which)\s+.*(vs|versus|compared to|for)\s+.*

Isolates comparison-style queries that AIO renders as answer-with-table format. These are where WF-AIO-3 (mandatory HTML comparison table) has the highest impact.

Pattern 3 — Definitional queries ("what is X", "define X")

^(what is|what are|define|meaning of)\b.*

Isolates definitional queries — the ones AIO extracts using the WF-AIO-1 answer-first opener pattern. If your GSC shows this segment growing but your clicks are flat, the answer-paragraph rewrite is the highest-ROI fix.

Pattern 4 — Cost / pricing queries

^(how much|how many|cost of|price of|pricing for)\b.*

Isolates cost- and quantity-shaped queries — high commercial intent and increasingly served by AIO answer boxes. Track this segment separately from the general AI-shape filter.

The impressions-vs-clicks matrix — what the numbers mean

Once the filter is saved and you have a week of data, the 4-cell matrix below tells you what to do next.

Impressions Clicks Signal What to do
Up Up Healthy AIO citation with your page as source Keep shipping the current pattern. Add more clusters.
Up Down AIO expanding your visibility without giving the click (zero-click) Reframe goal to brand mention inside AIO. Ship answer-first opener on displaced pages.
Down Down AIO displacing your rank without citing you (worst case) Run manual citation check. Retrofit three-schema stack + answer-first opener urgently.
Flat Flat AIO does not surface for your category (rare in B2B in 2026) Focus on GEO for LLM engines (ChatGPT / Perplexity / Claude) instead of AEO.

Most B2B sites we audit sit in cell 2 (impressions up, clicks down) — that is the signature of the September 2026 auto-expand rollout. Full diagnostic in why is my organic traffic down — the AI Overviews diagnostic.

What to watch for weekly (the leading indicators)

Weekly review takes about 10 minutes. Three things to look at in order:

  1. Week-over-week impression change in the AI-shape segment. Rising = AIO exposure is growing for your category. Falling = something changed (either AIO shrunk in your category, or your ranking dropped upstream).
  2. Week-over-week CTR change in the AI-shape segment. Falling CTR is the earliest signal of AIO displacement — often 2–3 weeks ahead of the raw click count moving. Catch it here, ship the recovery playbook before the click drop becomes material.
  3. Individual query drill-down on the top-10 falling CTR queries. For any query where CTR dropped 20%+ week-over-week, run it manually in Google incognito. If AIO shows and cites a competitor, that query needs the recovery playbook this week, not next.

The GSC filter is the leading indicator; the full 5-source measurement stack (per-engine citation check, AIO tracker, revenue attribution) is the confirming layer. Full stack: how to track AI SEO — metrics, rankings & diagnostics.

Sources & further reading

Want us to set up the full measurement stack (not just the regex) for your team?

Talk to WebFlur →
Pankaj Raghav, Founder of WebFlur
Written by
Pankaj Raghav
Founder, WebFlur — AI SEO & Agentic Presence Engineer

Pankaj has spent a decade building SEO infrastructure for B2B companies. He co-founded WebFlur to focus exclusively on the shift from Google-first to AI-first discovery — engineering GEO, AEO, LLM SEO, and Agent2Agent (A2A) endpoints that put B2B brands inside AI assistant answers. Runs every WebFlur audit himself; ships the endpoints; writes the machine-readable content. Verifiable identity on LinkedIn.

Frequently asked questions

^(what|how|why|when|which|is|are|does|can|should).* — apply as a custom Query filter with Matches regex in GSC Performance → Search results. Isolates question-shaped queries starting with the 10 most common English interrogative openings, which overlap 80%+ with AI Overviews and AI Mode surfaces.
GSC Performance → Search results → +New → Query → Custom (regex). Paste the regex. Ensure Matches regex is selected (not Contains). Apply. The filter is URL-encoded so bookmark the resulting URL. Total setup: about 5 minutes.
Google does not label queries as AI-specific — from Google's side, every query is just a query. AI Overviews is a rendering layer on top of the SERP, not a distinct query type. The regex uses query shape (question-form vs noun-form) as a proxy for AIO trigger likelihood.
AI Overviews is expanding your visibility without giving you the click — the user gets the answer inline. This is the zero-click signature. Recovery: ship WF-AIO-1 answer-first opener with brand mention (so the AIO citation carries your brand), re-verify at 14 and 30 days.
Yes — same language, but AIO rollout stage and citation patterns differ by geo. GSC lets you filter by country in the same view; combine the regex query filter with a country filter for each priority market. Compare the delta between geos to spot geo-specific AIO behavior.
No — the pattern is English-only. For multilingual sites, add localized alternations. Spanish: ^(qué|cómo|por qué|cuándo|cuál|es|son|hace|puede|debería).*. French: ^(quel|comment|pourquoi|quand|lequel|est|sont|fait|peut|devrait).*. Combine with alternation for multi-language sites.
Weekly for the aggregate impressions + clicks trend (10 minutes). Daily when running a recovery push. Monthly for deeper query-level drill-down that tells you which specific queries need attention.