Google Search Console Regex Generator

Build copy-ready regex filters for questions, word count, search intent, brand vs non-brand and URL patterns.

Query filters

Page (URL) filters

Question queries

Find queries phrased as questions: great for FAQ, People Also Ask and content-gap ideas.

Separate with commas or new lines.

89 characters

In Search Console: Performance → New → Query → Custom (regex), paste the regex and choose Matches regex. To exclude these queries, choose Doesn’t match regex instead.

Test it on sample queries

Result: 3 of 12 kept

  • how to fix canonical tags
  • what is hreflang
  • hreflang generator
  • best seo tools 2026
  • schema markup vs structured data
  • buy seo audit
  • seo consultant near me
  • aubrey yung seo
  • google search console not working
  • can google crawl javascript
  • seo pricing
  • 香港 seo 教學

The preview runs in your browser (JavaScript regex). Every pattern here avoids lookaheads, so it behaves the same in Search Console’s RE2 engine.

Copy-ready Search Console regex cheat sheet

The most common filters, ready to paste. Adjust the words to your niche.

  • Question queries Query

    ^(who|what|when|where|why|how|which|can|does|do|is|are|should|will|could|would)\s
  • Long-tail (4+ words) Query

    ^\S+(\s\S+){3,}$
  • Conversational (8+ words) Query

    ^\S+(\s\S+){7,}$
  • Single-word queries Query

    ^\S+$
  • Comparison intent Query

    \b(vs|versus|compared to|alternative|alternatives)\b
  • Commercial investigation Query

    \b(best|top|review|reviews|compare|comparison|recommended)\b
  • Transactional intent Query

    \b(buy|price|pricing|cost|cheap|discount|coupon|hire|quote)\b
  • Local intent Query

    \b(near me|nearby|open now|closest)\b
  • Contains a year Query

    \b20[0-9]{2}\b
  • Chinese characters Query

    \p{Han}
  • Non-English characters Query

    [^\x00-\x7F]
  • Blog posts only Page

    ^https?://[^/]+/blog/
  • Top-level pages only Page

    ^https?://[^/]+(/[^/?#]+){1}/?$
  • Homepage only Page

    ^https?://[^/]+/?$
  • URLs with parameters Page

    \?

    Pair with “Doesn’t match regex” to hide parameter URLs.

  • Paginated URLs Page

    /page/[0-9]+|[?&]page=[0-9]+