Search Console Regex: Find AI Prompts, ChatGPT Queries and Questions

Last updated: 17 November 2026
Search Console's regex filter is the closest thing to a free AI prompt tracker. With the right pattern you can pull out the questions people ask before your site appears, the long conversational searches that look like AI prompts, AI Mode follow-ups, and the queries where ChatGPT-style tools search Google for sources.
Below are the regex codes, ready to copy. Each one comes with what it finds, how to read the results and a variation to try. Paste them into your own Search Console and they'll work on any site.
Key takeaways
Search Console accepts regex on the Query and Page filters, using Google's RE2 syntax.
Google's AI Mode records prompts and follow-up questions as search queries, so some AI-style searches do appear in your Performance report.
No regex can prove a query came from AI. These patterns group queries that look and behave like prompts, so you can study them.
The most useful codes find questions, 10+ word queries, instruction-style prompts, follow-ups and search operators.
Many long, unique queries are anonymised by Google, so you'll only ever see part of the picture.
How to add a regex filter in Search Console
Open Performance, then Search results.
Click Add filter, then choose Query (or Page for URLs).
Change "Queries containing" to Custom (regex).
Keep Matches regex, or choose Doesn't match regex to exclude.
Paste the code and click Apply.

Custom (regex) sits at the bottom of the filter type dropdown.

Choose Matches regex to include queries, or Doesn't match regex to exclude them.
Tip: you can stack filters. For example, add a question regex and a 10+ word regex as two separate Query filters to see only long questions.
Can you see AI prompts in Search Console?
Partly. Google's AI Mode records prompts and follow-up prompts as search queries, and Practical Ecommerce reports that Google's John Mueller confirmed this when asked about long queries appearing in Search Console. AI Mode clicks, impressions and positions are counted inside the normal Performance report under Web search.
There are also limits:
There's no "AI Mode" label. Google's Generative AI report in Search Console shows impressions only, with no queries attached, as ContextBolt explains.
Many prompts are hidden. Long, unique queries are often anonymised, so they never show in the query table. Suganthan's guide covers a case study showing AI Mode clicks are tracked but the queries behind them are almost all anonymised.
Regex groups, it doesn't detect. As Pixis puts it, these filters are research aids, not an AI-origin detector.
So treat the codes below as a way to see how people phrase things when they search conversationally. That's still extremely useful for content and AEO.
1. Find AI prompt-style queries (10+ words)
^(\S+\s+){9,}\S+$
What it finds: queries with 10 or more words. Normal keyword searches are usually short. Prompts typed into AI Mode, or copied from a chatbot, are long and read like sentences.
How it works: \S+ is a word, \s+ is the space after it, {9,} means nine or more times, then one final word. So nine words plus one equals ten or more.
Variations:
7+ words: ^(\S+\s+){6,}\S+$
15+ words (very prompt-like): ^(\S+\s+){14,}\S+$

The 10+ word regex applied in Search Console.
Word-count regex is the most widely shared method for this. ALM Corp's guide uses 10+ words as the starting point and suggests 15+ for the most conversational queries.
2. Find questions people ask before your site appears
^(who|what|when|where|why|how|which|is|are|can|could|does|do|did|should|will|would)\b
What it finds: every query that starts with a question word. These are the searches most likely to trigger featured snippets, People also ask and AI Overviews.

The question regex applied in Search Console.
Variation, questions anywhere in the query:
\?$|\b(who|what|when|where|why|how|which)\b
This also catches queries like "chatgpt ads what do they cost" and anything ending in a question mark.

The questions-anywhere variation applied in Search Console.
What to do with it: sort by impressions. Questions with lots of impressions and few clicks are your best AEO opportunities. Answer them directly near the top of the page that ranks. I explain how in what is answer engine optimisation.
3. Find ChatGPT-style instruction prompts
^(explain|tell me|show me|help me|give me|list|compare|summari[sz]e|write|create|recommend|suggest|find me|act as)\b
What it finds: queries that start with an instruction rather than a keyword. People rarely type "explain" or "give me" into Google, but they do into ChatGPT and AI Mode.

The instruction prompt regex applied in Search Console.
Variation, prompts that end like sentences:
\.$
Real searches almost never end with a full stop. Queries that do are often pasted prompts.

The full stop regex applied in Search Console.
4. Find first-person and context-heavy prompts
\b(i am|i'm|i have|i want|i need|my|we are|we have|our)\b
What it finds: queries where someone describes their own situation, such as "my business", "i'm a small agency" or "my location is united kingdom". That's typical of how people write to AI assistants, adding context so the answer is personalised.

The first-person regex applied in Search Console.
What to do with it: these show you the real situations behind a search. Use them to write examples and sections for specific audiences.
5. Find AI Mode follow-up questions
^(yes|no|ok|okay|sure|and|but|also|what about|how about|tell me more|more about|can you|what if)\b
What it finds: short fragments that only make sense as part of a conversation, such as "what about for small businesses" or "and how much does it cost". Google treats AI Mode follow-ups as new queries, so some appear like this.

The follow-up regex applied in Search Console.
Expect noise: some of these will be normal searches. Read them rather than counting them.
6. Find queries where AI tools search Google for sources
site:|inurl:|intitle:|-site:|\bfiletype:
What it finds: queries containing search operators. Real people rarely type them, but AI tools sometimes add operators like "site:" when they search the web for sources, which is why SEOs have started mining these queries in Search Console.

The search operator regex applied in Search Console.
What to do with it: if you see queries like "site:yourdomain.com pricing", an AI tool was looking for something specific on your site. Make sure that answer is easy to find.
7. Find queries that mention AI tools
chat ?gpt|claude|gemini|perplexity|copilot|grok|llm|ai (overview|mode|agent)
What it finds: every query that names an AI product or feature. "chat ?gpt" catches both "chatgpt" and "chat gpt".

The AI tools regex applied in Search Console.
Variation for your own industry: swap in your topics, products or competitors, for example (?:crm|hubspot|salesforce|pipedrive).
8. Find comparison queries
\b(vs|versus|difference between|compare|comparison|better than|alternatives?)\b
What it finds: "X vs Y", "difference between" and "alternatives" searches. These people are close to a decision, and comparison queries are exactly the kind of question people now ask AI tools.

The comparison regex applied in Search Console.
9. Find recommendation and buying-intent queries
\b(best|top|cheapest|recommended|reviews?|price|pricing|cost|worth it|agency|services?|hire)\b
What it finds: queries where someone wants a recommendation or is ready to buy. "Best" and "worth it" queries are also the ones AI assistants answer with a shortlist of brands.

The buying-intent regex applied in Search Console.
10. Separate branded and non-branded queries
yourbrand|your brand|yourbrand.com|commonmisspelling
How to use it: with Matches regex to see branded searches, and with Doesn't match regex to see everything else. Non-branded queries show how you perform for people who don't know you yet, which is where AI and SEO growth comes from.
11. Find "how to" and problem queries
^how (to|do|can|should)\b

The "how to" regex applied in Search Console.
\b(not working|error|fix|problem|issue|broken|why is|why does)\b

The problem queries regex applied in Search Console.
What they find: step-by-step questions and troubleshooting searches. Both are common in AI answers, and both reward clear, numbered instructions.
12. Group pages with a Page regex
/(blog|post)/.*(ai|chatgpt|claude|seo)
What it finds: this goes in the Page filter. It groups every blog post with those words in its URL, so you can compare whole topics instead of single pages.

The page regex applied in Search Console.
Other page codes:
URLs with a year in them: -20\d\d(/|$)
Specific sections: /(services|pricing|contact)/
Everything except the blog: use Doesn't match regex with /blog/
The regex basics you need
Google's help page on advanced filtering sets three rules:
RE2 syntax. No lookaheads or backreferences. Use "Doesn't match regex" instead.
Partial matching. A pattern matches anywhere unless you use ^ (starts with) or $ (ends with).
Not case-sensitive by default. Add (?-i) at the start if you need case-sensitive matching.
The symbols you'll use most:
| means "or"
^ means "starts with" and $ means "ends with"
\b is a word boundary, so \bai\b matches "ai" but not "email"
\s is a space and \S is any character that isn't a space
{9,} means "nine or more times"
? makes the character before it optional, so reviews? matches review and reviews
( ) groups options
The full list is in the RE2 syntax reference.
How to turn the results into content
Export the filtered queries. Use the Export button and save them to a sheet.
Group similar queries. Many prompts ask the same thing in different words. Group them into topics.
Check what ranks. For each group, look at which of your pages appears and how well it answers the question.
Answer directly. Add a clear answer near the top of the relevant page, then the detail.
Cover follow-ups. Use the follow-up and first-person queries to add sections for specific situations.
Don't create a page per prompt. One strong page per topic beats dozens of thin ones, and Google warns against mass-producing pages to rank.
Repeat monthly. Conversational searches change quickly.
My free Claude SEO skills include a Search Console analysis skill that groups queries like this for you, and I explain how to use Search Console reports in Claude.
Common regex mistakes in Search Console
Using lookaheads like (?!brand). RE2 doesn't support them, so use "Doesn't match regex".
Matching too much. "ai" matches "said" and "email". Use \bai\b.
Forgetting dots are special. A dot means "any character". Use \. for a real full stop.
Expecting totals to match the main report. Filtered views leave out anonymised queries.
Reading one query as proof. A single long query isn't evidence of AI traffic. Look for patterns.
Short date ranges. Use the last 3 to 16 months so rare conversational queries have time to appear.
Copy-paste cheat sheet
10+ word prompts: ^(\S+\s+){9,}\S+$
Questions: ^(who|what|when|where|why|how|which|is|are|can|could|does|do|did|should|will|would)\b
Instruction prompts: ^(explain|tell me|show me|help me|give me|list|compare|summari[sz]e|write|create|recommend|suggest|find me|act as)\b
Sentences ending in a full stop: \.$
First-person context: \b(i am|i'm|i have|i want|i need|my|we are|we have|our)\b
AI Mode follow-ups: ^(yes|no|ok|okay|sure|and|but|also|what about|how about|tell me more|more about|can you|what if)\b
Search operators: site:|inurl:|intitle:|-site:|\bfiletype:
AI tool mentions: chat ?gpt|claude|gemini|perplexity|copilot|grok|llm|ai (overview|mode|agent)
Comparisons: \b(vs|versus|difference between|compare|comparison|better than|alternatives?)\b
Buying intent: \b(best|top|cheapest|recommended|reviews?|price|pricing|cost|worth it|agency|services?|hire)\b
How to: ^how (to|do|can|should)\b
Problems: \b(not working|error|fix|problem|issue|broken|why is|why does)\b
Frequently asked questions
Can I see ChatGPT prompts in Google Search Console?
Not directly. Search Console shows Google searches, not ChatGPT conversations. But ChatGPT and other AI tools sometimes search Google for sources, and those searches can appear, often with search operators like "site:". The operator regex above helps you find them.
Can I see AI Mode queries in Search Console?
Some. AI Mode prompts and follow-ups are recorded as queries in the Performance report, but there's no label, and many are anonymised. The 10+ word and follow-up regex codes are the best way to find the ones that do show.
What is the best regex for questions in Search Console?
^(who|what|when|where|why|how|which|is|are|can|could|does|do|did|should|will|would)\b is a good starting point. Add your own question starters if your audience uses them.
Is Search Console regex case-sensitive?
No. Matching isn't case-sensitive by default. Add (?-i) to the start if you need it to be.
Why does my regex return no results?
Usually because of unsupported syntax, such as lookaheads, or a pattern that's too strict. Remove ^ and $ and try again, or test it in regex101 with the Golang flavour, which follows similar RE2 rules.
Can I save regex filters?
Search Console doesn't save filters, but the filter is stored in the page URL. Bookmark the URL to reuse it.
Sources
Related reading
About the author: Faryal Raza Bhatti is a UK-based marketer with over seven years' experience across B2B, B2C, SaaS and eCommerce. He works across SEO, AEO, paid media and digital PR, and builds his own Claude skills for search.





Comments