# Google Search Console regex generator

Free tools

Generate RE2 expressions to filter queries by word count and test examples locally.

Minimum words

Maximum (optional)

Regular expression

^\s*(\S+\s+){6,}\S+\s*$

Copy regex

Test a query

 (how to optimise a website for AI search)

## How to use it

In Search Console, open Performance → Query → Custom (regex) → Matches regex. The expression counts groups of non-whitespace characters separated by whitespace. All processing takes place locally in your browser.

## Explore further

[Free SEO and sales tools](<https://rui-martins.com/en/tools/>)[Compare ranking analysis tools](<https://rui-martins.com/en/insights/google-ranking-tools/>)[Optimising websites for AI Search](<https://rui-martins.com/en/insights/optimise-websites-for-ai/>)[SEO and AI Search consulting](<https://rui-martins.com/en/consulting/seo-aeo-ai-search/>)

---

Canonical HTML source: <https://rui-martins.com/en/tools/search-console-regex/>
