Back to tools

Search Console regex generator

15+ advanced regular expression (RE2) recipes, built specifically to filter your queries and URLs in Google Search Console. No coding skills needed.

Keyword filters

Long tail (> N words)

Find queries that contain a minimum number of words.

Regex (RE2 syntax)
([^ ]*\s){4,}

Important for Google Search Console:

GSC uses the RE2 regex engine. It does not support the negative lookaheads (?!...) you may know from other languages.

👉 To exclude an expression generated here (e.g. your brand name), paste the code into GSC and pick the "Doesn't match regex" filter instead of trying to write the exclusion into the regex itself.