Skip to content
SeoSpectoBeta

Regex generator for Google Search Console filters

Pick a filter type, enter words or paths and copy a ready pattern into Search Console's "Custom (regex)" filter. Test it on your own list of queries or URLs.

Everything you type or upload is processed only in your browser. Nothing is sent to a server.

Include misspellings and the no-space form too, e.g. seospecto, seo specto, seospekto.

You can also edit it by hand. Length: 34 / 4096 characters

In Search Console: Performance → Add filter → Query (or Page) → Custom (regex) → "Matches regex" or "Doesn't match regex".

Regex in Google Search Console

In the Performance report you can filter queries and pages with a regular expression: Add filter → Query → Custom (regex). Search Console uses RE2 syntax:

  • matching is partial – ctr matches "ctr calculator"; use ^ and $ to match the whole string,
  • it's case-insensitive; (?-i) at the start makes it case-sensitive,
  • there's a "Doesn't match regex" option, so you don't need negation inside the expression,
  • RE2 doesn't support lookahead/lookbehind, backreferences or possessive quantifiers – the generator warns you if you use them.

Ready-made recipes

GoalExpression
Branded queries(seospecto|seo\s*specto)
Questions^(how|what|why|when|where|who|which)\b
Long tail (5+ words)^(\S+\s+){4,}\S+$
Blog directory^https?://[^/]+/blog/

Tips

  • Add misspellings and the no-space form to your brand pattern – people type brand names in many ways.
  • A "doesn't match" filter on the brand pattern gives you non-brand traffic. In SeoSpecto you set brand rules once and they apply to the whole history: Brand vs non-brand.
  • Once you filter by query, totals leave out anonymized queries, so they can be lower than the unfiltered chart.

Frequently asked questions

Why does my regex work elsewhere but not in Search Console?

Usually because of a lookahead (?!...) or a backreference – RE2 doesn't support them. Instead of negating inside the expression, use the "Doesn't match regex" option.

Does the tester behave exactly like Search Console?

The tester runs a JavaScript engine on RE2-compatible syntax (we reject anything RE2 doesn't know). For typical expressions the result is the same, but the final check is the filter in Search Console.

What's the maximum expression length?

According to the Search Console API documentation, 4,096 characters. The generator shows a counter.

Want to analyze this data automatically, without exporting files?

Connect Google Search Console to SeoSpecto – data arrives daily, history doesn't vanish after 16 months, and alerts and reports run on their own.