Skip to content
Görkem KaraLead Mobile Developer

Search Console regex: find the questions people ask AI

4 min read

Filter your Search Console queries with the regex ^(?:\S+\s+){7,}\S+$. It keeps only queries with 8 or more words: the long, question-shaped searches people also type into ChatGPT, Perplexity and Google AI Overviews. Then write one page per real question and answer it in the first paragraph. Takes about 2 minutes, no paid tool.

Search Console regex for long questions
the whole trick is one regex

Step by step

  1. Open Search Console, pick your property, go to Performance → Search results

  2. Set the date range to the last 3 months (or 12 if your site is small)

  3. Click "+ Add filter" → Query → switch the dropdown to Custom (regex)

  4. Keep "Matches regex", paste ^(?:\S+\s+){7,}\S+$, apply

  5. Open the Queries tab and sort by Impressions. Export → CSV if you want an agent to do the next part

Search Console steps: Performance, Add filter, Query, Custom (regex), paste the regex
the 5 steps, drawn (not a screenshot)
text
^(?:\S+\s+){7,}\S+$

What the regex actually does

  • ^ and $: match the whole query, start to end

  • (?:\S+\s+): one word followed by a space

  • {7,}: at least 7 of those

  • \S+: plus the last word. so 8+ words in total

small site with few long queries? lower it to {4,} (5+ words). want only real questions? use a second filter with ^(how|what|why|when|where|which|who|can|does|is|are|should) . Search Console uses RE2 syntax, so lookaheads like (?=...) don't work.

Why long queries = AI questions

short queries are keywords ("jadx", "compose animation"). 8+ word queries are sentences, people typing the exact question they have. that is the same way people talk to ChatGPT and AI Overviews, so these rows are the closest thing Search Console gives you to "what do people ask AI about my topic".

Search Console queries: short keyword queries compared with 8+ word long questions people also ask AI
keywords vs long questions (example rows)

Rule 1: one question = one page

  • group queries that ask the same thing in different words. one group = one page

  • if an existing page already answers it, improve that page instead of writing a new one

  • dont write one giant "everything about X" post for 20 questions, it answers none of them well and nothing gets quoted

Rule 2: answer in the first paragraph

the first paragraph is what AI answers and featured snippets quote. put the direct answer in the first 1-2 sentences, then the one condition that matters. no intro, no "in this article we will". the rest of the page is for the follow-up questions, one H2 each.

this page does it too: the regex and what to do with it are in the first paragraph.

Rule 3: schema that matches the page

  • a guide or answer page is an Article / BlogPosting. most site builders and CMSs already output it, check it with the Rich Results Test

  • FAQPage only when the questions and answers are visible on the page. FAQ markup on every page is not a strategy

  • show the author and the updated date on the page and in the schema, it tells both Google and AI answers who wrote it and how fresh it is

in the same Performance report open the Pages tab, sort by Clicks, and add a link to the new page from the top 3 related pages with a descriptive anchor. Google recrawls those pages often, so it finds the new link sooner than it finds a page that only sits in the sitemap.

One question, one page: group long queries, answer in the first paragraph, matching schema, internal links from top pages
the 4 rules in one picture

Let an agent do the boring part

export the filtered queries, drag the CSV into Claude Code or any assistant, and use the long question prompt from SEO prompts for Claude Code:

prompt
You are a content strategist. I'm giving you Search Console queries with 8 or more words (Queries.csv) and a list of my existing URLs.
1. Group the queries by the question behind them. Same intent = same group, even if the wording differs.
2. For each group: does an existing URL already answer it? If yes, name the URL and what's missing on it. If no, plan one new page.
3. For each planned page give: the H1 written as the question, a 1-2 sentence direct answer for the first paragraph, 3-5 H2s, and which existing page should link to it.
4. Sort by impressions of the group, highest first.
Rules:
- One page per real question. Never one big post for all of them.
- Use only queries and numbers from the file. Don't invent search volume.
- If a group is too thin (one query, few impressions), put it in a "later" list instead of planning a page.

View on GitHub

birdeveloper/seo-prompts-for-claude-code GitHub stars

Frequently asked questions

Does this regex work in Google Search Console?

Yes. Performance → Search results → Add filter → Query → Custom (regex), keep "Matches regex" and paste it. It returns queries with 8 or more words.

Why 8 words and not 5?

8+ words almost always means a full question or sentence. On a small site you may get few rows, then use {4,} for 5+ words and read them manually.

Does Search Console show what people ask ChatGPT?

No. It only shows Google searches. Long Google queries are written the same way people ask AI assistants, so they are a good free proxy for those questions.

More AI guides and real runs

Last updated: Written by: Görkem KARA