Skip to content
Sudip Acharya

Google Search Console Regex Cheat Sheet: 30 Filters to Find Hidden Keywords

By Sudip Acharya · · 4 min read

Copy-paste regex filters for Search Console: question queries, comparisons, long-tail and AI-style prompts, buying intent, local, brand vs non-brand, and URL groups. Plus the RE2 rules most guides get wrong.

Search Console has your best keyword research data, and regex is how you get at it. The Performance report shows the real queries people used to find you. Regex filters let you slice those queries by intent, length and format in seconds. Below are 30 filters I use on client sites, grouped by what they find, plus the rules that trip people up.

How to use regex in Google Search Console

  1. Open Performance → Search results.
  2. Click + Add filter → Query (or Page).
  3. Choose Custom (regex).
  4. Pick Matches regex or Doesn't match regex.
  5. Paste the pattern and apply.

Set the date range to at least 3 months, and turn on Impressions, Clicks, CTR and Position.

Does Search Console regex support lookaheads? The rules most guides get wrong

  • Search Console uses RE2. RE2 doesn't support lookaheads ((?!...)) or lookbehinds. Guides that tell you to use ^(?!.*brand).* are wrong for Search Console. Use "Doesn't match regex" with brand instead.
  • Matching is partial. how matches anywhere in the query, including inside "however" and "showroom". Use ^ and \b (word boundaries) to be precise.
  • Case-sensitive by default. Add (?i) at the start when filtering URLs.
  • 4,096 characters maximum per pattern.
  • Queries are anonymised below a threshold, so low-volume queries may not appear at all.

1. How to find question queries (FAQ and AEO goldmine)

Find Regex
Questions starting with a question word ^(who|what|where|when|why|how|which)\b
Questions anywhere in the query \b(who|what|where|when|why|how|which)\b
Yes/no questions ^(is|are|can|does|do|should|will|was)\b
"How to" queries ^how (to|do|can)\b
"What is" definitions ^what (is|are|does)\b

What to do with them: every question you get impressions for but rank poorly on is a missing H2 section or FAQ. See How to win featured snippets and AI citations.

2. How to find long-tail and AI-style queries

Find Regex
6+ words ^(\S+\s+){5,}\S+$
8+ words (conversational / AI-style) ^(\S+\s+){7,}\S+$
1–2 words (head terms) ^\S+(\s+\S+)?$

Long queries are growing as people get used to typing full questions into AI Mode and chatbots. Seeing them in Search Console shows you exactly how people phrase their problems.

3. Comparison and decision queries

Find Regex
Comparisons \b(vs|versus|or|compared to|comparison|difference between)\b
Alternatives \b(alternative|alternatives|instead of|similar to|like)\b
Best / top lists \b(best|top|leading|recommended)\b
Reviews \b(review|reviews|rating|worth it|legit)\b

These have high commercial intent. If you get impressions but have no page for them, build one. See How to write comparison and alternatives pages.

4. Buying and action intent

Find Regex
Price \b(price|pricing|cost|costs|how much|cheap|affordable|fee|rate)\b
Hire / service \b(hire|agency|consultant|service|services|company|freelancer|expert)\b
Buy / book \b(buy|book|order|booking|near me|online)\b
Templates / tools \b(template|checklist|tool|calculator|generator|example|examples|sample)\b

5. Freshness and year queries

Find Regex
Year in query \b20(2[4-9]|3[0-9])\b
"Latest / new / update" \b(latest|new|update|updated|now|today)\b

If people search with a year, your title and content need to be current and honest. Don't just change the year in the title. See Content refresh.

6. Local queries

Find Regex
Near me / in city \b(near me|nearby|in kathmandu|in pokhara|in nepal)\b
Any "in + place" \bin [a-z]+$

Swap the place names for your own markets.

7. How to separate brand and non-brand queries

  • Brand: Matches regex (?i)(sudip\|acharya). Replace with your brand and its common misspellings.
  • Non-brand: the same pattern with Doesn't match regex.

Always report non-brand separately. It shows whether SEO is actually growing, as opposed to brand demand.

8. Page (URL) groups

Find Regex (Page filter)
All blog posts /blogs?/
Several sections /(services|industries)/
URLs with parameters \?
A topic cluster (geo|aeo|ai-overview|ai-mode)

Use these to measure a whole topic cluster at once.

How I use these in practice

  1. Monthly: run filters 1, 2 and 3, and export queries with 100+ impressions and a position worse than 10. That's your content backlog.
  2. Quarterly: compare brand and non-brand clicks year on year.
  3. After updates: compare page groups before and after a core update (recovery guide).

Combine these with the Search Console quick wins method to turn filtered queries into actions.

Sources

Frequently asked questions

How do I use regex in Google Search Console?

In the Performance report, add a Query or Page filter, choose 'Custom (regex)', select 'Matches regex' or 'Doesn't match regex', and paste the pattern.

Does Search Console regex support lookaheads like (?!...)?

No. Search Console uses RE2 syntax, which doesn't support lookaheads or lookbehinds. To exclude terms, use the 'Doesn't match regex' option with a simple pattern instead.

Is Search Console regex case-sensitive?

Yes, by default. Add (?i) at the start of a pattern to make it case-insensitive. Queries are mostly lowercase, but page URLs may not be.

How do I find long-tail queries in Search Console?

Filter queries by word count with a regex such as ^(\S+\s+){5,}\S+$, which matches queries with six or more words.

All pages

EmailLinkedIn